On Tue, 2002-06-18 at 01:55, ANSETT, Kevin, FM wrote: > Hi All, > > I have a problem with Perl DBI using the Nullable property.. > > I have a table I created - DDL below, that has not null on all fields. > > Now according to the DBI Manual, preparing a statement and executing it, > should > give 0, 1 or 2 depending on the nullability of the field. > > My code seems to either give undef or space.
Sorry - that looks like a bug in DBD::Sybase:
case 3: /* NULLABLE */
av = newAV();
retsv = newRV(sv_2mortal((SV*)av));
while(--i >= 0)
av_store(av, i,
(imp_sth->datafmt[i].status & CS_CANBENULL)
? &sv_yes : &sv_no);
break;
Seems it just returns true/false.
I'll fix it for the next release.
Michael
--
Michael Peppler / [EMAIL PROTECTED] / http://www.mbay.net/~mpeppler
[EMAIL PROTECTED] / ZetaTools, Inc / http://www.zetatools.com
ZetaTools: Call perl functions as Sybase stored procedures!
signature.asc
Description: This is a digitally signed message part
