Home
last modified time | relevance | path

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

/PHP-7.4/ext/pdo_dblib/
H A Ddblib_driver.c150 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in dblib_handle_quoter() argument
157 *quotedlen = 0; in dblib_handle_quoter()
171 if (unquoted[i] == '\'') ++*quotedlen; in dblib_handle_quoter()
172 ++*quotedlen; in dblib_handle_quoter()
175 *quotedlen += 2; /* +2 for opening, closing quotes */ in dblib_handle_quoter()
177 ++*quotedlen; /* N prefix */ in dblib_handle_quoter()
179 q = *quoted = emalloc(*quotedlen + 1); /* Add byte for terminal null */ in dblib_handle_quoter()
/PHP-7.4/ext/pdo_firebird/
H A Dfirebird_driver.c244 char **quoted, size_t *quotedlen, enum pdo_param_type paramtype) in firebird_handle_quoter() argument
251 *quotedlen = 2; in firebird_handle_quoter()
252 *quoted = emalloc(*quotedlen+1); in firebird_handle_quoter()
261 *quotedlen = unquotedlen + qcount + 2; in firebird_handle_quoter()
262 *quoted = c = emalloc(*quotedlen+1); in firebird_handle_quoter()
274 strncpy(c, l, *quotedlen-(c-*quoted)-1); in firebird_handle_quoter()
275 (*quoted)[*quotedlen-1] = '\''; in firebird_handle_quoter()
276 (*quoted)[*quotedlen] = '\0'; in firebird_handle_quoter()
/PHP-7.4/ext/pdo_oci/
H A Doci_driver.c361 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in oci_handle_quoter() argument
368 *quotedlen = 2; in oci_handle_quoter()
369 *quoted = emalloc(*quotedlen+1); in oci_handle_quoter()
378 *quotedlen = unquotedlen + qcount + 2; in oci_handle_quoter()
379 *quoted = c = emalloc(*quotedlen+1); in oci_handle_quoter()
390 strncpy(c, l, *quotedlen-(c-*quoted)-1); in oci_handle_quoter()
391 (*quoted)[*quotedlen-1] = '\''; in oci_handle_quoter()
392 (*quoted)[*quotedlen] = '\0'; in oci_handle_quoter()
/PHP-7.4/ext/pdo_mysql/
H A Dmysql_driver.c306 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in mysql_handle_quoter() argument
327 *quotedlen = mysql_real_escape_string_quote(H->server, *quoted + 2, unquoted, unquotedlen, '\''); in mysql_handle_quoter()
331 ++*quotedlen; /* N prefix */ in mysql_handle_quoter()
333 *quotedlen = mysql_real_escape_string_quote(H->server, *quoted + 1, unquoted, unquotedlen, '\''); in mysql_handle_quoter()
337 (*quoted)[++*quotedlen] = '\''; in mysql_handle_quoter()
338 (*quoted)[++*quotedlen] = '\0'; in mysql_handle_quoter()
339 PDO_DBG_INF_FMT("quoted=%.*s", (int)*quotedlen, *quoted); in mysql_handle_quoter()
/PHP-7.4/ext/pdo_pgsql/
H A Dpgsql_driver.c321 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in pgsql_handle_quoter() argument
331 *quotedlen = tmp_len + 1; in pgsql_handle_quoter()
332 *quoted = emalloc(*quotedlen + 1); in pgsql_handle_quoter()
333 memcpy((*quoted)+1, escaped, *quotedlen-2); in pgsql_handle_quoter()
335 (*quoted)[*quotedlen-1] = '\''; in pgsql_handle_quoter()
336 (*quoted)[*quotedlen] = '\0'; in pgsql_handle_quoter()
342 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL); in pgsql_handle_quoter()
343 (*quoted)[*quotedlen + 1] = '\''; in pgsql_handle_quoter()
344 (*quoted)[*quotedlen + 2] = '\0'; in pgsql_handle_quoter()
345 *quotedlen += 2; in pgsql_handle_quoter()
/PHP-7.4/ext/pdo/
H A Dphp_pdo_driver.h258 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_…
/PHP-7.4/ext/pdo_sqlite/
H A Dsqlite_driver.c234 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in sqlite_handle_quoter() argument
238 *quotedlen = strlen(*quoted); in sqlite_handle_quoter()
/PHP-7.4/ext/pdo_odbc/
H A Dodbc_driver.c263 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in odbc_handle_quoter() argument

Completed in 26 milliseconds