|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-10-04 18:40 UTC] mlemos at acm dot org
What is the condition that determines that a result column has is NULL? I thought that the array returned by mssql_fetch_row would return an unset entry for the given column position but it seems to set it with a boolean false value now. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 20:00:02 2025 UTC |
MSSQL may have been based upont the MySQL functionality, but it is now it's on beast. To continue thinking along the lines that the two are similiar is just a bad idea. The code in question by you is this: if (Z_TYPE(result->data[result->cur_row][i]) != IS_NULL) { /* ... snip ... */ } else { if (result_type & MSSQL_NUM) add_index_null(return_value, i); if (result_type & MSSQL_ASSOC) add_assoc_null(return_value, result->fields[i].name); } As you can see, the behavior is checked based upon the IS_NULL value. When it is decided that there is a NULL value returned, it is further checked against the two other types. The first of which sets an add_index_null to the return_value, based upon the value of 'i'. 'i' is an integer, thus it will always have a value, at the least of zero. That being said, if you still feel this should be more properly documented I welcome you to write that section of, paste it into this bug report, and reopen it. As it stands this isn't a bug, thus it shouldn't be in the bug database, and I again state: If you need help please ask on the php-general mailing list, but the bug database is not the place for support questions.