]> granicus.if.org Git - php/commitdiff
update for api changes
authorWez Furlong <wez@php.net>
Sun, 6 Feb 2005 22:34:53 +0000 (22:34 +0000)
committerWez Furlong <wez@php.net>
Sun, 6 Feb 2005 22:34:53 +0000 (22:34 +0000)
ext/pdo_dblib/dblib_driver.c
ext/pdo_dblib/dblib_stmt.c
ext/pdo_firebird/firebird_driver.c
ext/pdo_firebird/firebird_statement.c
ext/pdo_oci/oci_driver.c
ext/pdo_oci/oci_statement.c
ext/pdo_sqlite/sqlite_driver.c
ext/pdo_sqlite/sqlite_statement.c

index 41b1e00972fc7233039de48d53088ab0ea389a26..7b7c26d7f8569e2045bb5bc03f12fd03b382ee9d 100644 (file)
@@ -133,7 +133,7 @@ static long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRM
        return DBCOUNT(H->link);
 }
 
-static int dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen  TSRMLS_DC)
+static int dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC)
 {
        pdo_dblib_db_handle *H = (pdo_dblib_db_handle *)dbh->driver_data;
        char *q;
index 72d9170648c40fd1cd646d9da5d846f329eef480..f5bfa71cd4bdb6992d46e3a255785720d48551b7 100644 (file)
@@ -223,7 +223,7 @@ static int pdo_dblib_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
 }
 
 static int pdo_dblib_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr,
-        unsigned long *len TSRMLS_DC)
+        unsigned long *len, int *caller_frees TSRMLS_DC)
 {
        pdo_dblib_stmt *S = (pdo_dblib_stmt*)stmt->driver_data;
        pdo_dblib_colval *val = &S->rows[S->current] + colno;
index a9f39c6b32920cefb9009d5cb8abe5c1b058c0e3..daa0d19b1716cf99fba8eb4d51619fa8523d8847 100644 (file)
@@ -259,7 +259,7 @@ static long firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len T
 
 /* called by the PDO SQL parser to add quotes to values that are copied into SQL */
 static int firebird_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, /* {{{ */
-       char **quoted, int *quotedlen TSRMLS_DC)
+       char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC)
 {
        int qcount = 0;
        char const *c;
index 98e8959f920839d52126c7baa07b4efcf055ec7f..7242ccfb682e1158c4cfe89cb98166acad3c63bc 100644 (file)
@@ -290,7 +290,7 @@ fetch_blob_end:
 /* }}} */
 
 static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr,  /* {{{ */
-       unsigned long *len TSRMLS_DC)
+       unsigned long *len, int *caller_frees TSRMLS_DC)
 {
        pdo_firebird_stmt *S = (pdo_firebird_stmt*)stmt->driver_data;
        XSQLVAR const *var = &S->out_sqlda.sqlvar[colno];
index 6531d315538235755cf6d92f084e21f5c5e0472f..cd3fc0de88bb18a95abd0728207981b2835613f3 100755 (executable)
@@ -290,7 +290,7 @@ static long oci_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS
 }
 /* }}} */
 
-static int oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen  TSRMLS_DC) /* {{{ */
+static int oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype  TSRMLS_DC) /* {{{ */
 {
        pdo_oci_db_handle *H = (pdo_oci_db_handle *)dbh->driver_data;
 
index 7aac25e31caad24f48265a6add24802b75cd152e..890d97b95f120ad0969f33fef041b8f8f214518d 100755 (executable)
@@ -415,7 +415,7 @@ static int oci_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
        return 1;
 }
 
-static int oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len TSRMLS_DC)
+static int oci_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC)
 {
        pdo_oci_stmt *S = (pdo_oci_stmt*)stmt->driver_data;
        pdo_oci_column *C = &S->cols[colno];
index 878e0daa554ff6aaf1a0b279bc6d9ab555a7e02f..8ba33d1dd9503e0b844cf46bf8993f539129b41c 100644 (file)
@@ -164,7 +164,7 @@ static long pdo_sqlite_last_insert_id(pdo_dbh_t *dbh TSRMLS_DC)
 }
 
 /* NB: doesn't handle binary strings... use prepared stmts for that */
-static int sqlite_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen  TSRMLS_DC)
+static int sqlite_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype  TSRMLS_DC)
 {
        pdo_sqlite_db_handle *H = (pdo_sqlite_db_handle *)dbh->driver_data;
        *quoted = emalloc(2*unquotedlen + 3);
index 71b8959818c4230ef05f7811e645e52a31acef8a..8b9ceb3bd19a6095812dec7c13e5fd673dfdbbe2 100644 (file)
@@ -184,7 +184,7 @@ static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC)
        return 1;
 }
 
-static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len TSRMLS_DC)
+static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsigned long *len, int *caller_frees TSRMLS_DC)
 {
        pdo_sqlite_stmt *S = (pdo_sqlite_stmt*)stmt->driver_data;
        if (!S->stmt) {