Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd19439f

Browse files
author
Thomas G. Lockhart
committed
Remove the definition for set_name_needs_quotes() on the assumption that
it is now obsolete. Need some regression test cases to prove otherwise...
1 parentb875b59 commitd19439f

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

‎src/backend/parser/gram.y

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.307 2002/04/2119:21:49 thomas Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.308 2002/04/21 21:37:03 thomas Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -6676,25 +6676,3 @@ doNegateFloat(Value *v)
66766676
v->val.str = newval;
66776677
}
66786678
}
6679-
6680-
/*
6681-
* Decide whether to put double quotes around a name appearing in a SET
6682-
* name_list. Presently, do so if the name contains whitespace, commas,
6683-
* or uppercase characters. (This is correct assuming that the result
6684-
* will be deparsed by SplitIdentifierString or similar logic.)
6685-
*/
6686-
staticbool
6687-
set_name_needs_quotes(constchar *name)
6688-
{
6689-
if (*name =='\0')
6690-
returntrue;/* empty name does need quotes*/
6691-
while (*name)
6692-
{
6693-
if (*name ==',' ||
6694-
isspace((unsignedchar) *name) ||
6695-
isupper((unsignedchar) *name))
6696-
returntrue;
6697-
name++;
6698-
}
6699-
returnfalse;
6700-
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp