in reply to Getting identity after autoincr in FreeTDS/MSSQL/DBI
Also, run your script with the DBI->trace(3) flag, to see what DBD::Sybase thinks it's getting. For example, when I ran your script against a Sybase 12.0 server, I got:
Michael-> fetchrow_hashref in DBD::_::st for DBD::Sybase::st (DBI::st=HAS +H(0x81c6114)~0x8106cb0) 2 -> fetch for DBD::Sybase::st (DBI::st=HASH(0x8106cb0)~INNER) dbih_setup_fbav for 1 fields => 0x8106d64 2 <- fetch= [ '26' ] row1 at scratch.pl line 22 2 -> FETCH for DBD::Sybase::st (DBI::st=HASH(0x8106cb0)~INNER 'NAME' +) 2 <- FETCH= [ 'foo' ] at scratch.pl line 22 <- fetchrow_hashref= HASH(0x8106db8)1keys row1 at scratch.pl line +22
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Getting identity after autoincr in FreeTDS/MSSQL/DBI
by scain (Curate) on Nov 10, 2001 at 00:06 UTC | |
by mpeppler (Vicar) on Nov 10, 2001 at 00:28 UTC |