Home
last modified time | relevance | path

Searched refs:sql_len (Results 1 – 9 of 9) sorted by relevance

/PHP-5.6/ext/pdo_firebird/
H A Dfirebird_driver.c135 static int firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, /* {{{ */ in firebird_handle_preparer() argument
155 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &num_sqlda, &s, np TSRMLS_CC)) { in firebird_handle_preparer()
221 static long firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) /* {{{ */ in firebird_handle_doer()
236 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &out_sqlda, &stmt, 0 TSRMLS_CC)) { in firebird_handle_doer()
394 static int firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, long sql_len, /* {{{ */ in firebird_alloc_prepare_stmt() argument
402 if (sql_len > 65536) { in firebird_alloc_prepare_stmt()
425 new_sql = c = emalloc(sql_len+1); in firebird_alloc_prepare_stmt()
427 for (l = in_quote = in_param = 0; l <= sql_len; ++l) { in firebird_alloc_prepare_stmt()
/PHP-5.6/ext/pdo_mysql/
H A Dmysql_driver.c164 static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, z… in mysql_handle_preparer() argument
175 PDO_DBG_INF_FMT("sql=%.*s", sql_len, sql); in mysql_handle_preparer()
190 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC); in mysql_handle_preparer()
195 sql_len = nsql_len; in mysql_handle_preparer()
210 if (mysql_stmt_prepare(S->stmt, sql, sql_len)) { in mysql_handle_preparer()
256 static long mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) in mysql_handle_doer()
261 PDO_DBG_INF_FMT("sql=%.*s", sql_len, sql); in mysql_handle_doer()
263 if (mysql_real_query(H->server, sql, sql_len)) { in mysql_handle_doer()
/PHP-5.6/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, zva… in oci_handle_preparer() argument
270 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC); in oci_handle_preparer()
275 sql_len = nsql_len; in oci_handle_preparer()
289 if (sql_len) { in oci_handle_preparer()
290 H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); in oci_handle_preparer()
327 static long oci_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) /* {{{ */ in oci_handle_doer()
337 H->last_err = OCIStmtPrepare(stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); in oci_handle_doer()
/PHP-5.6/ext/sqlite3/
H A Dsqlite3.c222 int sql_len; local
444 int sql_len; local
450 if (sql_len) {
470 int sql_len, errcode; local
481 if (!sql_len) {
519 int sql_len, return_code; local
528 if (!sql_len) {
638 int sql_len, return_code; local
649 if (!sql_len) {
1670 int sql_len, errcode; local
[all …]
/PHP-5.6/ext/pdo_odbc/
H A Dodbc_driver.c145 static int odbc_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zv… in odbc_handle_preparer() argument
161 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC); in odbc_handle_preparer()
223 static long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) in odbc_handle_doer()
236 rc = SQLExecDirect(stmt, (char *)sql, sql_len); in odbc_handle_doer()
/PHP-5.6/ext/pdo/
H A Dphp_pdo_driver.h255 typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt…
258 typedef long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC);
/PHP-5.6/ext/pdo_dblib/
H A Ddblib_driver.c94 static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, z… in dblib_handle_preparer() argument
108 static long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) in dblib_handle_doer()
/PHP-5.6/ext/pdo_sqlite/
H A Dsqlite_driver.c178 static int sqlite_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, … in sqlite_handle_preparer() argument
196 i = sqlite3_prepare(H->db, sql, sql_len, &S->stmt, &tail); in sqlite_handle_preparer()
206 static long sqlite_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) in sqlite_handle_doer()
/PHP-5.6/ext/pdo_pgsql/
H A Dpgsql_driver.c232 static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, z… in pgsql_handle_preparer() argument
275 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC); in pgsql_handle_preparer()
305 static long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) in pgsql_handle_doer()

Completed in 50 milliseconds