Re: Class::DBI::Sybase patch (for IDENTITY columns)

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

From: Michael Wojcikiewicz
Subject: Re: Class::DBI::Sybase patch (for IDENTITY columns)
Date: 17:28 on 19 Oct 2004
> On Tue, Oct 19, 2004 at 11:56:19AM -0500, Michael Wojcikiewicz wrote:
>> Attached is a patch (and full file) for allowing auto-generation of values
>> for IDENTITY columns in Sybase.  It relies on the fact that sp_help
returns the right info regarding IDENTITY columns (works in sybase
12.5.2).
>> Comments?  Suggestions?  Bugs??
>
> Just curious why you'd going through the DBI prepare-execute-fetch
cycle, rather than the normal Class::DBI set-sql approach?

I was just following the coding convention that was in the 0.1 release.  I
guess it seems like overkill to use set_sql for a built-in command (like
sp_columns or sp_help) or for a statement as simple as 'SELECT
@@IDENTITY'.  I could convert to use set_sql if that is desired.

--mike


Class::DBI::Sybase patch (for IDENTITY columns)
Michael Wojcikiewicz 16:56 on 19 Oct 2004

Re: Class::DBI::Sybase patch (for IDENTITY columns)
Michael Wojcikiewicz 17:28 on 19 Oct 2004

another Class::DBI::Sybase patch (0.3)
Michael Wojcikiewicz 15:44 on 20 Oct 2004

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