Re: [patch] Class::DBI & SQL Server

[prev] [thread] [next] [Date index for 2004/10/24]

From: Tony Bowden
Subject: Re: [patch] Class::DBI & SQL Server
Date: 16:06 on 24 Oct 2004
On Mon, Jun 07, 2004 at 12:59:02AM +0100, James O'Sullivan wrote:
> When inserting a row into a table that has an auto-incrementing (identity
> in SQL Server) primary key, you can't specify the key & value in the query
> (even the value is '' or undef).  If you try to force the insert by
> setting IDENTITY_INSERT ON you lose the auto-incrementing property of the
> column.
> Perhaps there's an existing (or better) way to get around this, but I have
> attached a patch containing my solution.  If there is a better way I'd be
> interested in hearing it.

This has (hopefully) been fixed by the change to the Live Object Index key stuff.

Thanks,

Tony

[patch] Class::DBI & SQL Server
James O'Sullivan 23:59 on 06 Jun 2004

Re: [patch] Class::DBI & SQL Server
Tony Bowden 16:06 on 24 Oct 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52