Home
last modified time | relevance | path

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

/PHP-7.2/ext/pdo_dblib/
H A Ddblib_driver.c152 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in dblib_handle_quoter() argument
159 *quotedlen = 0; in dblib_handle_quoter()
173 if (unquoted[i] == '\'') ++*quotedlen; in dblib_handle_quoter()
174 ++*quotedlen; in dblib_handle_quoter()
177 *quotedlen += 2; /* +2 for opening, closing quotes */ in dblib_handle_quoter()
179 ++*quotedlen; /* N prefix */ in dblib_handle_quoter()
181 q = *quoted = emalloc(*quotedlen + 1); /* Add byte for terminal null */ in dblib_handle_quoter()
/PHP-7.2/ext/pdo_firebird/
H A Dfirebird_driver.c235 char **quoted, size_t *quotedlen, enum pdo_param_type paramtype) in firebird_handle_quoter() argument
242 *quotedlen = 2; in firebird_handle_quoter()
243 *quoted = emalloc(*quotedlen+1); in firebird_handle_quoter()
252 *quotedlen = unquotedlen + qcount + 2; in firebird_handle_quoter()
253 *quoted = c = emalloc(*quotedlen+1); in firebird_handle_quoter()
265 strncpy(c, l, *quotedlen-(c-*quoted)-1); in firebird_handle_quoter()
266 (*quoted)[*quotedlen-1] = '\''; in firebird_handle_quoter()
267 (*quoted)[*quotedlen] = '\0'; in firebird_handle_quoter()
/PHP-7.2/ext/pdo_oci/
H A Doci_driver.c363 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in oci_handle_quoter() argument
370 *quotedlen = 2; in oci_handle_quoter()
371 *quoted = emalloc(*quotedlen+1); in oci_handle_quoter()
380 *quotedlen = unquotedlen + qcount + 2; in oci_handle_quoter()
381 *quoted = c = emalloc(*quotedlen+1); in oci_handle_quoter()
392 strncpy(c, l, *quotedlen-(c-*quoted)-1); in oci_handle_quoter()
393 (*quoted)[*quotedlen-1] = '\''; in oci_handle_quoter()
394 (*quoted)[*quotedlen] = '\0'; in oci_handle_quoter()
/PHP-7.2/ext/pdo_mysql/
H A Dmysql_driver.c300 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in mysql_handle_quoter() argument
321 *quotedlen = mysql_real_escape_string(H->server, *quoted + 2, unquoted, unquotedlen); in mysql_handle_quoter()
325 ++*quotedlen; /* N prefix */ in mysql_handle_quoter()
327 *quotedlen = mysql_real_escape_string(H->server, *quoted + 1, unquoted, unquotedlen); in mysql_handle_quoter()
331 (*quoted)[++*quotedlen] = '\''; in mysql_handle_quoter()
332 (*quoted)[++*quotedlen] = '\0'; in mysql_handle_quoter()
333 PDO_DBG_INF_FMT("quoted=%.*s", (int)*quotedlen, *quoted); in mysql_handle_quoter()
/PHP-7.2/ext/pdo_pgsql/
H A Dpgsql_driver.c331 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in pgsql_handle_quoter() argument
341 *quotedlen = tmp_len + 1; in pgsql_handle_quoter()
342 *quoted = emalloc(*quotedlen + 1); in pgsql_handle_quoter()
343 memcpy((*quoted)+1, escaped, *quotedlen-2); in pgsql_handle_quoter()
345 (*quoted)[*quotedlen-1] = '\''; in pgsql_handle_quoter()
346 (*quoted)[*quotedlen] = '\0'; in pgsql_handle_quoter()
352 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL); in pgsql_handle_quoter()
353 (*quoted)[*quotedlen + 1] = '\''; in pgsql_handle_quoter()
354 (*quoted)[*quotedlen + 2] = '\0'; in pgsql_handle_quoter()
355 *quotedlen += 2; in pgsql_handle_quoter()
/PHP-7.2/ext/pdo_sqlite/
H A Dsqlite_driver.c237 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in sqlite_handle_quoter() argument
241 *quotedlen = strlen(*quoted); in sqlite_handle_quoter()
/PHP-7.2/ext/pdo/
H A Dphp_pdo_driver.h260 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_…
/PHP-7.2/ext/pdo_odbc/
H A Dodbc_driver.c264 … *dbh, const char *unquoted, size_t unquotedlen, char **quoted, size_t *quotedlen, enum pdo_param_… in odbc_handle_quoter() argument

Completed in 47 milliseconds