ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-Dev
php-Dev
[PHP-DEV] Bug #13793: ibase_fetch_row function chokes on null column values
by other posts by this author
Oct 22 2001 10:15PM messages near this date
Re: [PHP-DEV] Bug #13785 Updated: Compile with MySQL 4.0.0 | Bug #13793 Updated: ibase_fetch_row function chokes on null column values
From:             smk@[...].com
Operating system: Linux
PHP version:      4.0.6
PHP Bug Type:     InterBase related
Bug description:  ibase_fetch_row function chokes on null column values

It seems that, if there is a NULL field at the end of a query string, or
TWO or more NULL fields in the MIDDLE of the QUERY string, ibase_fetch_row
just DROPS the nulls, and any column data that follows them. For exampe, if
I have a table with the columns: FNAME, LNAME, MI, PREFIX, SUFFIX, DOB,
SEX, PASSWORD . . . 
IF MI, PREFIX, and SUFFIX all allow NULL values, and all are null, a SELECT
* on this table would only return TWO values: FNAME and LNAME. It would
leave out the PASSWORD!

This is VERY BAD. It SHOULD return (like in any normal SQL query) null
values for any null fields, and NOT skip or stop at any columns, just
because the data is null.

So . . . I have to populate every field with a default null value (a space,
or the word "null", for example), if I want to make sure not to miss column
date when I do a SELECT statement using ibase_fetch_row.

If anyone knows a way around this, an explanation, or any other ideas,
please post them.
   Thanks, Steve
-- 
Edit bug report at: http://bugs.php.net/?id=13793&edit=1


-- 
PHP Development Mailing List <http://www.php.net/> 
To unsubscribe, e-mail: php-dev-unsubscribe@[...].net
For additional commands, e-mail: php-dev-help@[...].net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
Thread:








Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved