scottmac                Mon Jul 28 23:01:02 2008 UTC

  Modified files:              (Branch: PHP_5_3)
    /php-src/ext/sqlite3        sqlite3.c 
  Log:
  Fix error when fetchArray reaches the last row, and prototyp error
  
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/sqlite3/sqlite3.c?r1=1.1.2.3&r2=1.1.2.4&diff_format=u
Index: php-src/ext/sqlite3/sqlite3.c
diff -u php-src/ext/sqlite3/sqlite3.c:1.1.2.3 
php-src/ext/sqlite3/sqlite3.c:1.1.2.4
--- php-src/ext/sqlite3/sqlite3.c:1.1.2.3       Sat Jul 26 23:58:06 2008
+++ php-src/ext/sqlite3/sqlite3.c       Mon Jul 28 23:01:02 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: sqlite3.c,v 1.1.2.3 2008/07/26 23:58:06 jani Exp $ */
+/* $Id: sqlite3.c,v 1.1.2.4 2008/07/28 23:01:02 scottmac Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1013,7 +1013,7 @@
 }
 /* }}} */
 
-/* {{{ proto bool SQLite3_stmt::bindValue(inte parameter_number, mixed 
parameter [, int type])
+/* {{{ proto bool SQLite3_stmt::bindValue(int parameter_number, mixed 
parameter [, int type])
    Bind Value of a parameter to a stmt variable. */
 PHP_METHOD(sqlite3_stmt, bindValue)
 {
@@ -1252,9 +1252,11 @@
                                        add_assoc_zval(return_value, 
(char*)sqlite3_column_name(result_obj->stmt_obj->stmt, i), data);
                                }
                        }
-               break;
+                       break;
+
                case SQLITE_DONE:
                        RETURN_FALSE;
+                       break;
 
                default:
                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to 
execute statement: %s", 
sqlite3_errmsg(sqlite3_db_handle(result_obj->stmt_obj->stmt)));



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to