Lines Matching refs:quoted
308 static int pgsql_handle_quoter(pdo_dbh_t *dbh, const char *unquoted, int unquotedlen, char **quoted… in pgsql_handle_quoter() argument
323 *quoted = emalloc(*quotedlen + 1); in pgsql_handle_quoter()
324 memcpy((*quoted)+1, escaped, *quotedlen-2); in pgsql_handle_quoter()
325 (*quoted)[0] = '\''; in pgsql_handle_quoter()
326 (*quoted)[*quotedlen-1] = '\''; in pgsql_handle_quoter()
327 (*quoted)[*quotedlen] = '\0'; in pgsql_handle_quoter()
331 *quoted = safe_emalloc(2, unquotedlen, 3); in pgsql_handle_quoter()
332 (*quoted)[0] = '\''; in pgsql_handle_quoter()
334 *quotedlen = PQescapeString(*quoted + 1, unquoted, unquotedlen); in pgsql_handle_quoter()
336 *quotedlen = PQescapeStringConn(H->server, *quoted + 1, unquoted, unquotedlen, NULL); in pgsql_handle_quoter()
338 (*quoted)[*quotedlen + 1] = '\''; in pgsql_handle_quoter()
339 (*quoted)[*quotedlen + 2] = '\0'; in pgsql_handle_quoter()