sql               255 ext/pdo/php_pdo_driver.h typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC);
sql               258 ext/pdo/php_pdo_driver.h typedef long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC);
sql                94 ext/pdo_dblib/dblib_driver.c static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC)
sql               108 ext/pdo_dblib/dblib_driver.c static long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC)
sql               115 ext/pdo_dblib/dblib_driver.c 	if (FAIL == dbcmd(H->link, sql)) {
sql               135 ext/pdo_firebird/firebird_driver.c static int firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, /* {{{ */
sql               155 ext/pdo_firebird/firebird_driver.c 		if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &num_sqlda, &s, np TSRMLS_CC)) {
sql               221 ext/pdo_firebird/firebird_driver.c static long firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) /* {{{ */
sql               236 ext/pdo_firebird/firebird_driver.c 	if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &out_sqlda, &stmt, 0 TSRMLS_CC)) {
sql               394 ext/pdo_firebird/firebird_driver.c static int firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, long sql_len, /* {{{ */
sql               428 ext/pdo_firebird/firebird_driver.c 		if ( !(in_quote ^= (sql[l] == '\''))) {
sql               430 ext/pdo_firebird/firebird_driver.c 				switch (sql[l]) {
sql               434 ext/pdo_firebird/firebird_driver.c 						*ppname++ = sql[l];
sql               441 ext/pdo_firebird/firebird_driver.c                                 if ((in_param &= ((sql[l] >= 'A' && sql[l] <= 'Z') || (sql[l] >= 'a' && sql[l] <= 'z')
sql               442 ext/pdo_firebird/firebird_driver.c                                         || (sql[l] >= '0' && sql[l] <= '9') || sql[l] == '_' || sql[l] == '-'))) { 
sql               445 ext/pdo_firebird/firebird_driver.c 					*ppname++ = sql[l];
sql               456 ext/pdo_firebird/firebird_driver.c 		*c++ = sql[l];
sql               164 ext/pdo_mysql/mysql_driver.c static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC)
sql               175 ext/pdo_mysql/mysql_driver.c 	PDO_DBG_INF_FMT("sql=%.*s", sql_len, sql);
sql               190 ext/pdo_mysql/mysql_driver.c 	ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC);
sql               194 ext/pdo_mysql/mysql_driver.c 		sql = nsql;
sql               210 ext/pdo_mysql/mysql_driver.c 	if (mysql_stmt_prepare(S->stmt, sql, sql_len)) {
sql               256 ext/pdo_mysql/mysql_driver.c static long mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC)
sql               261 ext/pdo_mysql/mysql_driver.c 	PDO_DBG_INF_FMT("sql=%.*s", sql_len, sql);
sql               263 ext/pdo_mysql/mysql_driver.c 	if (mysql_real_query(H->server, sql, sql_len)) {
sql               251 ext/pdo_oci/oci_driver.c static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC) /* {{{ */
sql               270 ext/pdo_oci/oci_driver.c 	ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC);
sql               274 ext/pdo_oci/oci_driver.c 		sql = nsql;
sql               290 ext/pdo_oci/oci_driver.c 		H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT);
sql               327 ext/pdo_oci/oci_driver.c static long oci_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC) /* {{{ */
sql               337 ext/pdo_oci/oci_driver.c 	H->last_err = OCIStmtPrepare(stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT);
sql               145 ext/pdo_odbc/odbc_driver.c static int odbc_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC)
sql               161 ext/pdo_odbc/odbc_driver.c 	ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC);
sql               165 ext/pdo_odbc/odbc_driver.c 		sql = nsql;
sql               197 ext/pdo_odbc/odbc_driver.c 	rc = SQLPrepare(S->stmt, (char*)sql, SQL_NTS);
sql               223 ext/pdo_odbc/odbc_driver.c static long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC)
sql               236 ext/pdo_odbc/odbc_driver.c 	rc = SQLExecDirect(stmt, (char *)sql, sql_len);
sql               230 ext/pdo_pgsql/pgsql_driver.c static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC)
sql               273 ext/pdo_pgsql/pgsql_driver.c 		ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len TSRMLS_CC);
sql               277 ext/pdo_pgsql/pgsql_driver.c 			sql = nsql;
sql               293 ext/pdo_pgsql/pgsql_driver.c 			S->query = estrdup(sql);
sql               303 ext/pdo_pgsql/pgsql_driver.c static long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC)
sql               310 ext/pdo_pgsql/pgsql_driver.c 	if (!(res = PQexec(H->server, sql))) {
sql               178 ext/pdo_sqlite/sqlite_driver.c static int sqlite_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pdo_stmt_t *stmt, zval *driver_options TSRMLS_DC)
sql               196 ext/pdo_sqlite/sqlite_driver.c 	i = sqlite3_prepare(H->db, sql, sql_len, &S->stmt, &tail);
sql               206 ext/pdo_sqlite/sqlite_driver.c static long sqlite_handle_doer(pdo_dbh_t *dbh, const char *sql, long sql_len TSRMLS_DC)
sql               211 ext/pdo_sqlite/sqlite_driver.c 	if (sqlite3_exec(H->db, sql, NULL, NULL, &errmsg) != SQLITE_OK) {
sql              6539 ext/pgsql/pgsql.c PHP_PGSQL_API int php_pgsql_insert(PGconn *pg_link, const char *table, zval *var_array, ulong opt, char **sql TSRMLS_DC)
sql              6655 ext/pgsql/pgsql.c 		*sql = querystr.c;
sql              6669 ext/pgsql/pgsql.c 	char *table, *sql = NULL;
sql              6696 ext/pgsql/pgsql.c 		if (php_pgsql_insert(pg_link, table, values, option|PGSQL_DML_STRING, &sql TSRMLS_CC) == FAILURE) {
sql              6699 ext/pgsql/pgsql.c 		pg_result = PQexec(pg_link, sql);
sql              6703 ext/pgsql/pgsql.c 			pg_result = PQexec(pg_link, sql);
sql              6705 ext/pgsql/pgsql.c 		efree(sql);
sql              6737 ext/pgsql/pgsql.c 	} else if (php_pgsql_insert(pg_link, table, values, option, &sql TSRMLS_CC) == FAILURE) {
sql              6741 ext/pgsql/pgsql.c 		RETURN_STRING(sql, 0);
sql              6814 ext/pgsql/pgsql.c PHP_PGSQL_API int php_pgsql_update(PGconn *pg_link, const char *table, zval *var_array, zval *ids_array, ulong opt, char **sql TSRMLS_DC) 
sql              6877 ext/pgsql/pgsql.c 		*sql = querystr.c;
sql              6891 ext/pgsql/pgsql.c 	char *table, *sql = NULL;
sql              6911 ext/pgsql/pgsql.c 	if (php_pgsql_update(pg_link, table, values, ids, option, &sql TSRMLS_CC) == FAILURE) {
sql              6915 ext/pgsql/pgsql.c 		RETURN_STRING(sql, 0);
sql              6923 ext/pgsql/pgsql.c PHP_PGSQL_API int php_pgsql_delete(PGconn *pg_link, const char *table, zval *ids_array, ulong opt, char **sql TSRMLS_DC) 
sql              6969 ext/pgsql/pgsql.c 		*sql = querystr.c;
sql              6983 ext/pgsql/pgsql.c 	char *table, *sql = NULL;
sql              7003 ext/pgsql/pgsql.c 	if (php_pgsql_delete(pg_link, table, ids, option, &sql TSRMLS_CC) == FAILURE) {
sql              7007 ext/pgsql/pgsql.c 		RETURN_STRING(sql, 0);
sql              7057 ext/pgsql/pgsql.c PHP_PGSQL_API int php_pgsql_select(PGconn *pg_link, const char *table, zval *ids_array, zval *ret_array, ulong opt, char **sql TSRMLS_DC)
sql              7107 ext/pgsql/pgsql.c 		*sql = querystr.c;
sql              7121 ext/pgsql/pgsql.c 	char *table, *sql = NULL;
sql              7142 ext/pgsql/pgsql.c 	if (php_pgsql_select(pg_link, table, ids, return_value, option, &sql TSRMLS_CC) == FAILURE) {
sql              7148 ext/pgsql/pgsql.c 		RETURN_STRING(sql, 0);
sql               215 ext/pgsql/php_pgsql.h PHP_PGSQL_API int php_pgsql_insert(PGconn *pg_link, const char *table, zval *values, ulong opt, char **sql TSRMLS_DC);
sql               216 ext/pgsql/php_pgsql.h PHP_PGSQL_API int php_pgsql_update(PGconn *pg_link, const char *table, zval *values, zval *ids, ulong opt , char **sql TSRMLS_DC);
sql               217 ext/pgsql/php_pgsql.h PHP_PGSQL_API int php_pgsql_delete(PGconn *pg_link, const char *table, zval *ids, ulong opt, char **sql TSRMLS_DC);
sql               218 ext/pgsql/php_pgsql.h PHP_PGSQL_API int php_pgsql_select(PGconn *pg_link, const char *table, zval *ids, zval *ret_array, ulong opt, char **sql  TSRMLS_DC);
sql               594 ext/sqlite3/libsqlite/sqlite3.c   const char *sql,                           /* SQL to be evaluated */
sql              2298 ext/sqlite3/libsqlite/sqlite3.c SQLITE_API int SQLITE_STDCALL sqlite3_complete(const char *sql);
sql              2299 ext/sqlite3/libsqlite/sqlite3.c SQLITE_API int SQLITE_STDCALL sqlite3_complete16(const void *sql);
sql              101933 ext/sqlite3/libsqlite/sqlite3.c   int  (*complete)(const char*sql);
sql              101934 ext/sqlite3/libsqlite/sqlite3.c   int  (*complete16)(const void*sql);
sql              102064 ext/sqlite3/libsqlite/sqlite3.c   const char *(*sql)(sqlite3_stmt*);
sql              102302 ext/sqlite3/libsqlite/sqlite3.c #define sqlite3_sql                    sqlite3_api->sql
sql               387 ext/sqlite3/libsqlite/sqlite3.h   const char *sql,                           /* SQL to be evaluated */
sql              2091 ext/sqlite3/libsqlite/sqlite3.h SQLITE_API int SQLITE_STDCALL sqlite3_complete(const char *sql);
sql              2092 ext/sqlite3/libsqlite/sqlite3.h SQLITE_API int SQLITE_STDCALL sqlite3_complete16(const void *sql);
sql                78 ext/sqlite3/libsqlite/sqlite3ext.h   int  (*complete)(const char*sql);
sql                79 ext/sqlite3/libsqlite/sqlite3ext.h   int  (*complete16)(const void*sql);
sql               209 ext/sqlite3/libsqlite/sqlite3ext.h   const char *(*sql)(sqlite3_stmt*);
sql               447 ext/sqlite3/libsqlite/sqlite3ext.h #define sqlite3_sql                    sqlite3_api->sql
sql               222 ext/sqlite3/sqlite3.c 	char *sql, *errtext = NULL;
sql               228 ext/sqlite3/sqlite3.c 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &sql, &sql_len)) {
sql               232 ext/sqlite3/sqlite3.c 	if (sqlite3_exec(db_obj->db, sql, NULL, NULL, &errtext) != SQLITE_OK) {
sql               444 ext/sqlite3/sqlite3.c 	char *sql, *ret;
sql               447 ext/sqlite3/sqlite3.c 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &sql, &sql_len)) {
sql               452 ext/sqlite3/sqlite3.c 		ret = sqlite3_mprintf("%q", sql);
sql               470 ext/sqlite3/sqlite3.c 	char *sql;
sql               478 ext/sqlite3/sqlite3.c 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &sql, &sql_len)) {
sql               493 ext/sqlite3/sqlite3.c 	errcode = sqlite3_prepare_v2(db_obj->db, sql, sql_len, &(stmt_obj->stmt), NULL);
sql               519 ext/sqlite3/sqlite3.c 	char *sql, *errtext = NULL;
sql               525 ext/sqlite3/sqlite3.c 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &sql, &sql_len)) {
sql               535 ext/sqlite3/sqlite3.c 		if (sqlite3_exec(db_obj->db, sql, NULL, NULL, &errtext) != SQLITE_OK) {
sql               551 ext/sqlite3/sqlite3.c 	return_code = sqlite3_prepare_v2(db_obj->db, sql, sql_len, &(stmt_obj->stmt), NULL);
sql               629 ext/sqlite3/sqlite3.c 	char *sql, *errtext = NULL;
sql               637 ext/sqlite3/sqlite3.c 	if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &sql, &sql_len, &entire_row)) {
sql               647 ext/sqlite3/sqlite3.c 		if (sqlite3_exec(db_obj->db, sql, NULL, NULL, &errtext) != SQLITE_OK) {
sql               654 ext/sqlite3/sqlite3.c 	return_code = sqlite3_prepare_v2(db_obj->db, sql, sql_len, &stmt, NULL);
sql              1651 ext/sqlite3/sqlite3.c 	char *sql;
sql              1659 ext/sqlite3/sqlite3.c 	if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os", &db_zval, php_sqlite3_sc_entry, &sql, &sql_len) == FAILURE) {
sql              1679 ext/sqlite3/sqlite3.c 	errcode = sqlite3_prepare_v2(db_obj->db, sql, sql_len, &(stmt_obj->stmt), NULL);