From 44dc9c1faa3bc6dfea71dc9dd7dc83bb642a818c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 19 Oct 2002 00:22:14 +0000 Subject: Fix psql's \copy to accept table names containing schemas, as well as a column list. Bring its parsing of quoted names and quoted strings somewhat up to speed --- I believe it now handles all non-error cases the same way the backend would, but weird boundary conditions are not necessarily done the same way. --- src/bin/psql/stringutils.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/bin/psql/stringutils.h') diff --git a/src/bin/psql/stringutils.h b/src/bin/psql/stringutils.h index faafc606d5e..62c8ba9e3af 100644 --- a/src/bin/psql/stringutils.h +++ b/src/bin/psql/stringutils.h @@ -1,9 +1,9 @@ /* * psql - the PostgreSQL interactive terminal * - * Copyright 2000 by PostgreSQL Global Development Group + * Copyright 2000-2002 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/stringutils.h,v 1.17 2001/11/05 17:46:31 momjian Exp $ + * $Id: stringutils.h,v 1.18 2002/10/19 00:22:14 tgl Exp $ */ #ifndef STRINGUTILS_H #define STRINGUTILS_H @@ -11,11 +11,11 @@ /* The cooler version of strtok() which knows about quotes and doesn't * overwrite your input */ extern char *strtokx(const char *s, + const char *whitespace, const char *delim, const char *quote, - int escape, - char *was_quoted, - unsigned int *token_pos, + char escape, + bool del_quotes, int encoding); #endif /* STRINGUTILS_H */ -- cgit v1.2.3