diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-10-19 00:22:14 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-10-19 00:22:14 +0000 |
commit | 44dc9c1faa3bc6dfea71dc9dd7dc83bb642a818c (patch) | |
tree | 1cbfd2d139a488cd88546f05d4b4bf629d37e0cd /src/bin/psql/stringutils.h | |
parent | 4cff161703beb10aab08b614feb9dfffc3860352 (diff) | |
download | postgresql-44dc9c1faa3bc6dfea71dc9dd7dc83bb642a818c.tar.gz postgresql-44dc9c1faa3bc6dfea71dc9dd7dc83bb642a818c.zip |
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.
Diffstat (limited to 'src/bin/psql/stringutils.h')
-rw-r--r-- | src/bin/psql/stringutils.h | 10 |
1 files changed, 5 insertions, 5 deletions
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 */ |