Searched refs:unquotedlen (Results 1 - 9 of 9) sorted by relevance

/PHP_5_3/ext/pdo/
H A Dphp_pdo_driver.h251 typedef int (*pdo_dbh_quote_func)(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC);
/PHP_5_3/ext/pdo_dblib/
H A Ddblib_driver.c141 static int dblib_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
147 *quoted = q = safe_emalloc(2, unquotedlen, 3);
150 while (unquotedlen--) {
/PHP_5_3/ext/pdo_firebird/
H A Dfirebird_driver.c277 static int firebird_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, /* {{{ */ argument
284 if (!unquotedlen) {
295 *quotedlen = unquotedlen + qcount + 2;
/PHP_5_3/ext/pdo_mysql/
H A Dmysql_driver.c330 static int mysql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
335 PDO_DBG_INF_FMT("unquoted=%.*s", unquotedlen, unquoted);
336 *quoted = safe_emalloc(2, unquotedlen, 3);
337 *quotedlen = mysql_real_escape_string(H->server, *quoted + 1, unquoted, unquotedlen);
/PHP_5_3/ext/pdo_oci/
H A Doci_driver.c369 static int oci_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) /* {{{ */ argument
375 if (!unquotedlen) {
386 *quotedlen = unquotedlen + qcount + 2;
/PHP_5_3/ext/pdo_odbc/
H A Dodbc_driver.c264 static int odbc_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type param_type TSRMLS_DC) argument
/PHP_5_3/ext/pdo_sqlite/
H A Dsqlite_driver.c233 static int sqlite_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
235 *quoted = safe_emalloc(2, unquotedlen, 3);
236 sqlite3_snprintf(2*unquotedlen + 3, *quoted, "'%q'", unquoted);
/PHP_5_3/ext/sqlite/
H A Dpdo_sqlite2.c382 static int sqlite2_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
386 if (unquotedlen && (unquoted[0] == '\x01' || memchr(unquoted, '\0', unquotedlen) != NULL)) {
389 ret = safe_emalloc(1 + unquotedlen / 254, 257, 5);
392 len = php_sqlite_encode_binary(unquoted, unquotedlen, ret+2);
399 } else if (unquotedlen) {
/PHP_5_3/ext/pdo_pgsql/
H A Dpgsql_driver.c308 static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted, int *quotedlen, enum pdo_param_type paramtype TSRMLS_DC) argument
318 escaped = PQescapeByteaConn(H->server, unquoted, unquotedlen, &tmp_len);
320 escaped = PQescapeBytea(unquoted, unquotedlen, &tmp_len);
331 *quoted = safe_emalloc(2, unquotedlen, 3);
334 *quotedlen = PQescapeString(*quoted + 1, unquoted, unquotedlen);
336 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL);

Completed in 24 milliseconds