Home
last modified time | relevance | path

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

/PHP-7.1/ext/pdo_firebird/
H A Dfirebird_driver.c133 static int firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, /* {{{ */ in firebird_handle_preparer() argument
153 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &num_sqlda, &s, np)) { in firebird_handle_preparer()
219 static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) /* {{{ */ in firebird_handle_doer() argument
234 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &out_sqlda, &stmt, 0)) { in firebird_handle_doer()
400 static int firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, size_t sql_len, /* {{{ */ in firebird_alloc_prepare_stmt() argument
408 if (sql_len > 65536) { in firebird_alloc_prepare_stmt()
431 new_sql = c = emalloc(sql_len+1); in firebird_alloc_prepare_stmt()
433 for (l = in_quote = in_param = 0; l <= sql_len; ++l) { in firebird_alloc_prepare_stmt()
/PHP-7.1/ext/pdo_mysql/
H A Dmysql_driver.c162 static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt,… in mysql_handle_preparer() argument
173 PDO_DBG_INF_FMT("sql=%.*s", (int)sql_len, sql); in mysql_handle_preparer()
188 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len); in mysql_handle_preparer()
193 sql_len = nsql_len; in mysql_handle_preparer()
208 if (mysql_stmt_prepare(S->stmt, sql, sql_len)) { in mysql_handle_preparer()
254 static zend_long mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) in mysql_handle_doer() argument
259 PDO_DBG_INF_FMT("sql=%.*s", (int)sql_len, sql); in mysql_handle_doer()
261 if (mysql_real_query(H->server, sql, sql_len)) { in mysql_handle_doer()
/PHP-7.1/ext/pdo_oci/
H A Doci_driver.c251 static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt, z… in oci_handle_preparer() argument
270 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len); 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, (ub4) sql_len, OCI_NTV_SYNTAX, OCI_DEFAU… in oci_handle_preparer()
325 static zend_long oci_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) /* {{{ */ in oci_handle_doer() argument
335 H->last_err = OCIStmtPrepare(stmt, H->err, (text*)sql, (ub4) sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT); in oci_handle_doer()
/PHP-7.1/ext/pdo_odbc/
H A Dodbc_driver.c145 static int odbc_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt, … in odbc_handle_preparer() argument
161 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len); in odbc_handle_preparer()
223 static zend_long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) in odbc_handle_doer() argument
236 rc = SQLExecDirect(stmt, (char *)sql, sql_len); in odbc_handle_doer()
/PHP-7.1/ext/pdo/
H A Dphp_pdo_driver.h245 typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *st…
248 typedef zend_long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, size_t sql_len);
/PHP-7.1/ext/pdo_dblib/
H A Ddblib_driver.c101 static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt,… in dblib_handle_preparer() argument
116 static zend_long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) in dblib_handle_doer() argument
/PHP-7.1/ext/pdo_sqlite/
H A Dsqlite_driver.c178 static int sqlite_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t 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 zend_long sqlite_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) in sqlite_handle_doer() argument
/PHP-7.1/ext/pdo_pgsql/
H A Dpgsql_driver.c233 static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt,… in pgsql_handle_preparer() argument
272 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len); in pgsql_handle_preparer()
302 static zend_long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) in pgsql_handle_doer() argument

Completed in 29 milliseconds