aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>2002-04-21 21:37:03 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>2002-04-21 21:37:03 +0000
commitd19439f7cd1934ef9d7973ba341b06dcd1bd59e4 (patch)
treee30a8d6c914dd3d6247ffd00605dab4cfedd84bb /src
parentb875b599f3c46cc3c13c7755674732dcc6ff5740 (diff)
downloadpostgresql-d19439f7cd1934ef9d7973ba341b06dcd1bd59e4.tar.gz
postgresql-d19439f7cd1934ef9d7973ba341b06dcd1bd59e4.zip
Remove the definition for set_name_needs_quotes() on the assumption that
it is now obsolete. Need some regression test cases to prove otherwise...
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/gram.y24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 91e33573aed..cc4cb59aae4 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.307 2002/04/21 19:21:49 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.308 2002/04/21 21:37:03 thomas Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -6676,25 +6676,3 @@ doNegateFloat(Value *v)
v->val.str = newval;
}
}
-
-/*
- * Decide whether to put double quotes around a name appearing in a SET
- * name_list. Presently, do so if the name contains whitespace, commas,
- * or uppercase characters. (This is correct assuming that the result
- * will be deparsed by SplitIdentifierString or similar logic.)
- */
-static bool
-set_name_needs_quotes(const char *name)
-{
- if (*name == '\0')
- return true; /* empty name does need quotes */
- while (*name)
- {
- if (*name == ',' ||
- isspace((unsigned char) *name) ||
- isupper((unsigned char) *name))
- return true;
- name++;
- }
- return false;
-}