Home
last modified time | relevance | path

Searched refs:quotedlen (Results 1 – 7 of 7) sorted by relevance

/PHP-8.0/ext/pdo_dblib/
H A Ddblib_driver.c148 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in dblib_handle_quoter() argument
155 *quotedlen = 0; in dblib_handle_quoter()
169 if (unquoted[i] == '\'') ++*quotedlen; in dblib_handle_quoter()
170 ++*quotedlen; in dblib_handle_quoter()
173 *quotedlen += 2; /* +2 for opening, closing quotes */ in dblib_handle_quoter()
175 ++*quotedlen; /* N prefix */ in dblib_handle_quoter()
177 q = *quoted = emalloc(*quotedlen + 1); /* Add byte for terminal null */ in dblib_handle_quoter()
/PHP-8.0/ext/pdo_oci/
H A Doci_driver.c359 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in oci_handle_quoter() argument
366 *quotedlen = 2; in oci_handle_quoter()
367 *quoted = emalloc(*quotedlen+1); in oci_handle_quoter()
376 *quotedlen = unquotedlen + qcount + 2; in oci_handle_quoter()
377 *quoted = c = emalloc(*quotedlen+1); in oci_handle_quoter()
388 strncpy(c, l, *quotedlen-(c-*quoted)-1); in oci_handle_quoter()
389 (*quoted)[*quotedlen-1] = '\''; in oci_handle_quoter()
390 (*quoted)[*quotedlen] = '\0'; in oci_handle_quoter()
/PHP-8.0/ext/pdo_firebird/
H A Dfirebird_driver.c664 char **quoted, size_t *quotedlen, enum pdo_param_type paramtype) in firebird_handle_quoter() argument
671 *quotedlen = 2; in firebird_handle_quoter()
672 *quoted = emalloc(*quotedlen+1); in firebird_handle_quoter()
681 *quotedlen = unquotedlen + qcount + 2; in firebird_handle_quoter()
682 *quoted = c = emalloc(*quotedlen+1); in firebird_handle_quoter()
694 strncpy(c, l, *quotedlen-(c-*quoted)-1); in firebird_handle_quoter()
695 (*quoted)[*quotedlen-1] = '\''; in firebird_handle_quoter()
696 (*quoted)[*quotedlen] = '\0'; in firebird_handle_quoter()
/PHP-8.0/ext/pdo_mysql/
H A Dmysql_driver.c311 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in mysql_handle_quoter() argument
332 *quotedlen = mysql_real_escape_string_quote(H->server, *quoted + 2, unquoted, unquotedlen, '\''); in mysql_handle_quoter()
336 ++*quotedlen; /* N prefix */ in mysql_handle_quoter()
338 *quotedlen = mysql_real_escape_string_quote(H->server, *quoted + 1, unquoted, unquotedlen, '\''); in mysql_handle_quoter()
342 (*quoted)[++*quotedlen] = '\''; in mysql_handle_quoter()
343 (*quoted)[++*quotedlen] = '\0'; in mysql_handle_quoter()
344 PDO_DBG_INF_FMT("quoted=%.*s", (int)*quotedlen, *quoted); in mysql_handle_quoter()
/PHP-8.0/ext/pdo_pgsql/
H A Dpgsql_driver.c352 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in pgsql_handle_quoter() argument
362 *quotedlen = tmp_len + 1; in pgsql_handle_quoter()
363 *quoted = emalloc(*quotedlen + 1); in pgsql_handle_quoter()
364 memcpy((*quoted)+1, escaped, *quotedlen-2); in pgsql_handle_quoter()
366 (*quoted)[*quotedlen-1] = '\''; in pgsql_handle_quoter()
367 (*quoted)[*quotedlen] = '\0'; in pgsql_handle_quoter()
373 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL); in pgsql_handle_quoter()
374 (*quoted)[*quotedlen + 1] = '\''; in pgsql_handle_quoter()
375 (*quoted)[*quotedlen + 2] = '\0'; in pgsql_handle_quoter()
376 *quotedlen += 2; in pgsql_handle_quoter()
/PHP-8.0/ext/pdo_sqlite/
H A Dsqlite_driver.c233 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in sqlite_handle_quoter() argument
240 *quotedlen = strlen(*quoted); in sqlite_handle_quoter()
/PHP-8.0/ext/pdo/
H A Dphp_pdo_driver.h256 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_…

Completed in 28 milliseconds