Searched refs:sql_len (Results 1 - 8 of 8) sorted by relevance

/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h247 typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC);
250 typedef zend_long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, zend_long sql_len TSRMLS_DC);
/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_driver.c96 static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
110 static zend_long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len TSRMLS_DC)
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c135 static int firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, /* {{{ */ argument
155 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &num_sqlda, &s, np TSRMLS_CC)) {
221 static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len TSRMLS_DC) /* {{{ */
236 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &out_sqlda, &stmt, 0 TSRMLS_CC)) {
394 static int firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, /* {{{ */ argument
402 if (sql_len > 65536) {
425 new_sql = c = emalloc(sql_len+1);
427 for (l = in_quote = in_param = 0; l <= sql_len; ++l) {
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_driver.c164 static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
175 PDO_DBG_INF_FMT("sql=%.*s", sql_len, sql);
190 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC);
195 sql_len = nsql_len;
210 if (mysql_stmt_prepare(S->stmt, sql, sql_len)) {
256 static zend_long mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len TSRMLS_DC)
261 PDO_DBG_INF_FMT("sql=%.*s", sql_len, sql);
263 if (mysql_real_query(H->server, sql, sql_len)) {
/PHP_TRUNK/ext/pdo_oci/
H A Doci_driver.c251 static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) /* {{{ */ argument
270 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC);
275 sql_len = nsql_len;
289 if (sql_len) {
290 H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT);
327 static long oci_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) /* {{{ */
337 H->last_err = OCIStmtPrepare(stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT);
/PHP_TRUNK/ext/pdo_odbc/
H A Dodbc_driver.c145 static int odbc_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
161 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC);
223 static zend_long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len TSRMLS_DC)
236 rc = SQLExecDirect(stmt, (char *)sql, sql_len);
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c217 static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
260 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC);
290 static zend_long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len TSRMLS_DC)
/PHP_TRUNK/ext/pdo_sqlite/
H A Dsqlite_driver.c178 static int sqlite_handle_preparer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) argument
196 i = sqlite3_prepare(H->db, sql, sql_len, &S->stmt, &tail);
206 static zend_long sqlite_handle_doer(pdo_dbh_t *dbh, const char *sql, zend_long sql_len TSRMLS_DC)

Completed in 13 milliseconds