SOURCES: php-sqlite3-new-functions.patch (NEW) - implement sqlite3...
arekm
arekm at pld-linux.org
Sat Dec 9 23:27:12 CET 2006
Author: arekm Date: Sat Dec 9 22:27:12 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- implement sqlite3_total_changes()
---- Files affected:
SOURCES:
php-sqlite3-new-functions.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/php-sqlite3-new-functions.patch
diff -u /dev/null SOURCES/php-sqlite3-new-functions.patch:1.1
--- /dev/null Sat Dec 9 23:27:12 2006
+++ SOURCES/php-sqlite3-new-functions.patch Sat Dec 9 23:27:06 2006
@@ -0,0 +1,39 @@
+--- php_sqlite3.c.org 2006-12-10 00:24:16.069685500 +0100
++++ php_sqlite3.c 2006-12-10 00:25:21.741789750 +0100
+@@ -805,6 +805,26 @@
+ }
+ /* }}} */
+
++/* }}}
++ {{{ integer sqlite3_total_changes(resource sqlite3)
++ return the number of database rows
++*/
++
++PHP_FUNCTION(sqlite3_total_changes)
++{
++ php_sqlite3_resource* me;
++ zval* z_rs;
++
++ if(ZEND_NUM_ARGS() != 1) WRONG_PARAM_COUNT;
++ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,"r", &z_rs)==FAILURE)
++ return;
++
++ ZVAL_TO_S3_HANDLE (me, &z_rs);
++
++ RETURN_LONG(sqlite3_total_changes (me->handle));
++}
++/* }}} */
++
+
+ /* {{{ void void php_sqlite3_user_function_cb(sqlite3_context*,int nargs,sqlite3_value**)
+ * callback function, for user-defined SQL functions. Get called by sqlite3 library
+--- php_sqlite3.h.org 2006-12-10 00:24:18.489836750 +0100
++++ php_sqlite3.h 2006-12-10 00:24:36.310950500 +0100
+@@ -18,6 +18,7 @@
+ PHP_FUNCTION(sqlite3_exec);
+ PHP_FUNCTION(sqlite3_query);
+ PHP_FUNCTION(sqlite3_changes);
++PHP_FUNCTION(sqlite3_total_changes);
+
+ PHP_FUNCTION(sqlite3_bind_int);
+ PHP_FUNCTION(sqlite3_bind_double);
================================================================
More information about the pld-cvs-commit
mailing list