Searched refs:sql (Results 1 - 21 of 21) sorted by relevance

/PHP_TRUNK/ext/phar/tests/files/
H A Dpear2coverage.phar.php940 $sql = 'SELECT version FROM analyzerversion';
941 if (@$this->db->querySingle($sql) == '2.1.0') {
937 $sql = 'SELECT version FROM analyzerversion'; variable
/PHP_TRUNK/ext/mbstring/oniguruma/win32/
H A DMakefile198 $(CC) $(CFLAGS) -I. -o sql sample\sql.c $(dlllib)
/PHP_TRUNK/ext/oci8/
H A Doci8_dtrace.d26 probe oci8__sqltext(void *connection, char *client_id, void *statement, char *sql);
/PHP_TRUNK/ext/soap/interop/
H A Dclient_round2_interop.php195 // build sql
196 $sql = "select * from endpoints "; variable
198 $sql .= "where class='$base' ";
199 if (!$all) $sql .= "and status=1";
201 if (!$all) $sql .= "where status=1";
202 $sql .= " order by endpointName";
205 $db_ep = $this->dbc->getAll($sql,NULL, DB_FETCHMODE_ASSOC );
207 echo $sql."\n";
234 $sql = "select * from results where class='$test' and type='$type' and wsdl=$wsdl"; variable
235 $results = $this->dbc->getAll($sql,NUL
274 $sql = "delete from results where endpoint=$endpoint_id ". variable
285 $sql = "insert into results (endpoint,stamp,class,type,wsdl,function,result,error,wire) ". variable
666 $sql = "select distinct(function) from results where class='$test' order by function"; variable
[all...]
/PHP_TRUNK/ext/pdo_odbc/
H A Dphp_pdo_odbc_int.h59 # include <sql.h>
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, zval *driver_options) argument
161 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len);
165 sql = nsql;
197 rc = SQLPrepare(S->stmt, (char*)sql, SQL_NTS);
223 static zend_long odbc_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) argument
236 rc = SQLExecDirect(stmt, (char *)sql, sql_len);
/PHP_TRUNK/ext/pdo_dblib/
H A Ddblib_driver.c95 static int dblib_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
109 static zend_long dblib_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) argument
116 if (FAIL == dbcmd(H->link, sql)) {
/PHP_TRUNK/ext/pdo_firebird/
H A Dfirebird_driver.c133 static int firebird_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, /* {{{ */ argument
153 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &num_sqlda, &s, np)) {
219 static zend_long firebird_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) /* {{{ */ argument
234 if (!firebird_alloc_prepare_stmt(dbh, sql, sql_len, &out_sqlda, &stmt, 0)) {
392 static int firebird_alloc_prepare_stmt(pdo_dbh_t *dbh, const char *sql, size_t sql_len, /* {{{ */ argument
426 if ( !(in_quote ^= (sql[l] == '\''))) {
428 switch (sql[l]) {
432 *ppname++ = sql[l];
439 if ((in_param &= ((sql[l] >= 'A' && sql[
[all...]
/PHP_TRUNK/ext/pdo_mysql/
H A Dmysql_driver.c164 static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
175 PDO_DBG_INF_FMT("sql=%.*s", (int)sql_len, sql);
190 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len);
194 sql = nsql;
210 if (mysql_stmt_prepare(S->stmt, sql, sql_len)) {
256 static zend_long mysql_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) argument
261 PDO_DBG_INF_FMT("sql=%.*s", (int)sql_len, sql);
263 if (mysql_real_query(H->server, sql, sql_le
[all...]
/PHP_TRUNK/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, zval *driver_options) 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, size_t sql_len) argument
211 if (sqlite3_exec(H->db, sql, NULL, NULL, &errmsg) != SQLITE_OK) {
/PHP_TRUNK/ext/odbc/
H A Dphp_birdstep.h26 #include <sql.h>
H A Dphp_odbc_includes.h48 # include <sql.h>
61 #include <sql.h>
69 #include <sql.h>
80 #include <sql.h>
96 #include <sql.h>
113 #include <sql.h>
120 #include <sql.h>
163 #include <sql.h>
199 #include <sql.h>
/PHP_TRUNK/ext/pgsql/
H A Dphp_pgsql.h218 PHP_PGSQL_API int php_pgsql_insert(PGconn *pg_link, const char *table, zval *values, zend_ulong opt, zend_string **sql);
219 PHP_PGSQL_API int php_pgsql_update(PGconn *pg_link, const char *table, zval *values, zval *ids, zend_ulong opt , zend_string **sql);
220 PHP_PGSQL_API int php_pgsql_delete(PGconn *pg_link, const char *table, zval *ids, zend_ulong opt, zend_string **sql);
221 PHP_PGSQL_API int php_pgsql_select(PGconn *pg_link, const char *table, zval *ids, zval *ret_array, zend_ulong opt, zend_string **sql );
H A Dpgsql.c5801 * check and convert array values (fieldname=>vlaue pair) for sql
6546 PHP_PGSQL_API int php_pgsql_insert(PGconn *pg_link, const char *table, zval *var_array, zend_ulong opt, zend_string **sql) argument
6652 *sql = querystr.s;
6673 zend_string *sql = NULL; local
6696 if (php_pgsql_insert(pg_link, table, values, option|PGSQL_DML_STRING, &sql) == FAILURE) {
6699 pg_result = PQexec(pg_link, sql->val);
6703 pg_result = PQexec(pg_link, sql->val);
6705 efree(sql);
6736 } else if (php_pgsql_insert(pg_link, table, values, option, &sql) == FAILURE) {
6740 RETURN_STR(sql);
6812 php_pgsql_update(PGconn *pg_link, const char *table, zval *var_array, zval *ids_array, zend_ulong opt, zend_string **sql) argument
6887 zend_string *sql = NULL; local
6918 php_pgsql_delete(PGconn *pg_link, const char *table, zval *ids_array, zend_ulong opt, zend_string **sql) argument
6979 zend_string *sql; local
7046 php_pgsql_select(PGconn *pg_link, const char *table, zval *ids_array, zval *ret_array, zend_ulong opt, zend_string **sql) argument
7111 zend_string *sql = NULL; local
[all...]
/PHP_TRUNK/ext/sqlite3/libsqlite/
H A Dsqlite3.h381 const char *sql, /* SQL to be evaluated */
2062 SQLITE_API int sqlite3_complete(const char *sql);
2063 SQLITE_API int sqlite3_complete16(const void *sql);
H A Dsqlite3ext.h78 int (*complete)(const char*sql);
79 int (*complete16)(const void*sql);
209 const char *(*sql)(sqlite3_stmt*); member in struct:sqlite3_api_routines
447 #define sqlite3_sql sqlite3_api->sql
H A Dsqlite3.c552 const char *sql, /* SQL to be evaluated */
2233 SQLITE_API int sqlite3_complete(const char *sql);
2234 SQLITE_API int sqlite3_complete16(const void *sql);
12431 #define OPFLAG_ISUPDATE 0x04 /* This OP_Insert is an sql UPDATE */
[all...]
/PHP_TRUNK/ext/sqlite3/
H A Dsqlite3.c215 zend_string *sql; local
221 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "S", &sql)) {
225 if (sqlite3_exec(db_obj->db, sql->val, NULL, NULL, &errtext) != SQLITE_OK) {
429 zend_string *sql; local
432 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "S", &sql)) {
436 if (sql->len) {
437 ret = sqlite3_mprintf("%q", sql->val);
455 zend_string *sql; local
463 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "S", &sql)) {
467 if (!sql
502 zend_string *sql; local
606 zend_string *sql; local
1592 zend_string *sql; local
[all...]
/PHP_TRUNK/ext/pdo_pgsql/
H A Dpgsql_driver.c221 static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt, zval *driver_options) argument
260 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len);
264 sql = nsql;
280 S->query = estrdup(sql);
290 static zend_long pgsql_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) argument
297 if (!(res = PQexec(H->server, sql))) {
/PHP_TRUNK/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, zval *driver_options) /* {{{ */ argument
270 ret = pdo_parse_params(stmt, (char*)sql, sql_len, &nsql, &nsql_len);
274 sql = nsql;
290 H->last_err = OCIStmtPrepare(S->stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT);
327 static zend_long oci_handle_doer(pdo_dbh_t *dbh, const char *sql, size_t sql_len) /* {{{ */ argument
337 H->last_err = OCIStmtPrepare(stmt, H->err, (text*)sql, sql_len, OCI_NTV_SYNTAX, OCI_DEFAULT);
/PHP_TRUNK/ext/pdo/
H A Dphp_pdo_driver.h247 typedef int (*pdo_dbh_prepare_func)(pdo_dbh_t *dbh, const char *sql, size_t sql_len, pdo_stmt_t *stmt, zval *driver_options);
250 typedef zend_long (*pdo_dbh_do_func)(pdo_dbh_t *dbh, const char *sql, size_t sql_len);

Completed in 181 milliseconds