*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.100 1997/11/03 04:21:41 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.101 1997/11/07 06:27:52 thomas Exp $
*
*-------------------------------------------------------------------------
*/
/* Build the query */
- for (i = strlen(table); i >= 0; i--)
- if (isupper(table[i]))
- table[i] = tolower(table[i]);
+ /* if the table name is surrounded by double-quotes, then don't convert case */
+ if (*table == '"')
+ {
+ table++;
+ if (*(table+strlen(table)-1) == '"')
+ *(table+strlen(table)-1) = '\0';
+ }
+ else
+ {
+ for (i = strlen(table); i >= 0; i--)
+ if (isupper(table[i]))
+ table[i] = tolower(table[i]);
+ }
descbuf[0] = '\0';
strcat(descbuf, "SELECT a.attnum, a.attname, t.typname, a.attlen, a.attnotnull");
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: psqlHelp.h,v 1.31 1997/10/16 06:59:23 vadim Exp $
+ * $Id: psqlHelp.h,v 1.32 1997/11/07 06:27:55 thomas Exp $
*
*-------------------------------------------------------------------------
*/
"copy data to and from a table",
"copy [binary] [with oids]\n\t{to|from} {|stdin|stdout} [using delimiters ];"},
{"create",
- "Please more be specific:",
+ "Please be more specific:",
"\tcreate aggregate\n\tcreate database\n\tcreate function\n\tcreate index\n\tcreate operator\n\tcreate rule\n\tcreate sequence\n\tcreate table\n\tcreate trigger\n\tcreate type\n\tcreate view"},
{"create aggregate",
"define an aggregate function",
"create aggregate
[as] (basetype = , \n\t[sfunc1 = , stype1 = ]\n\t[sfunc2 = , stype2 = ]\n\t[,finalfunc = ]\n\t[,initcond1 = ][,initcond2 = ]);"},
{"create database",
"create a database",
- "create database "},
+ "create database [with location = '']"},
{"create function",
"create a user-defined function",
"create function ([,...]) returns \n\tas ''|''\n\tlanguage 'c'|'sql'|'internal';"},
"delete tuples",
"delete from [where ];"},
{"drop",
- "Please more be specific:",
+ "Please be more specific:",
"\tdrop aggregate\n\tdrop database\n\tdrop function\n\tdrop index\n\tdrop operator\n\tdrop rule\n\tdrop sequence\n\tdrop table\n\tdrop trigger\n\tdrop type\n\tdrop view"},
{"drop aggregate",
"remove an aggregate function",