CVS update: php3/functions
| From: | cslawi | Date: | Tue, 13 Apr 1999 20:30:07 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5041@lists.php.net to get a copy of this message | ||
Date: Tuesday April 13, 1999 @ 16:30
Author: cslawi
Update of /repository/php3/functions
In directory asf:/u/temp/cvs-serv8998/functions
Modified Files:
mysql.c
Log Message:
Put numeric indices first in mysql_fetch_array().
Index: php3/functions/mysql.c
diff -c php3/functions/mysql.c:1.180 php3/functions/mysql.c:1.181
*** php3/functions/mysql.c:1.180 Sat Feb 27 14:10:38 1999
--- php3/functions/mysql.c Tue Apr 13 16:30:07 1999
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: mysql.c,v 1.180 1999/02/27 19:10:38 eschmid Exp $ */
/* TODO:
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: mysql.c,v 1.181 1999/04/13 20:30:07 cslawi Exp $ */
/* TODO:
***************
*** 1495,1506 ****
data_len = mysql_row_lengths[i];
should_copy=1;
}
if (result_type & MYSQL_ASSOC) {
add_assoc_stringl(return_value, mysql_field->name, data, data_len, should_copy);
should_copy=1;
- }
- if (result_type & MYSQL_NUM) {
- add_index_stringl(return_value, i, data, data_len, should_copy);
}
} else {
/* NULL field, don't set it */
--- 1495,1506 ----
data_len = mysql_row_lengths[i];
should_copy=1;
}
+ if (result_type & MYSQL_NUM) {
+ add_index_stringl(return_value, i, data, data_len, should_copy);
+ }
if (result_type & MYSQL_ASSOC) {
add_assoc_stringl(return_value, mysql_field->name, data, data_len, should_copy);
should_copy=1;
}
} else {
/* NULL field, don't set it */
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net