Lines Matching refs:quoted
320 static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted… in pgsql_handle_quoter() argument
335 *quoted = emalloc(*quotedlen + 1); in pgsql_handle_quoter()
336 memcpy((*quoted)+1, escaped, *quotedlen-2); in pgsql_handle_quoter()
337 (*quoted)[0] = '\''; in pgsql_handle_quoter()
338 (*quoted)[*quotedlen-1] = '\''; in pgsql_handle_quoter()
339 (*quoted)[*quotedlen] = '\0'; in pgsql_handle_quoter()
343 *quoted = safe_emalloc(2, unquotedlen, 3); in pgsql_handle_quoter()
344 (*quoted)[0] = '\''; in pgsql_handle_quoter()
346 *quotedlen = PQescapeString(*quoted + 1, unquoted, (size_t)unquotedlen); in pgsql_handle_quoter()
348 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, (size_t)unquotedlen, NULL); in pgsql_handle_quoter()
350 (*quoted)[*quotedlen + 1] = '\''; in pgsql_handle_quoter()
351 (*quoted)[*quotedlen + 2] = '\0'; in pgsql_handle_quoter()