mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Resolved an issue related to quoting the wrong keywords for the types.
It was due to wrong index used for the COL_NAME_KEYWORD, used by the 'needsQuoting' function. Also, replaced a tab with a space in the generate_keyword.py file. Reported by: Sanket Mehta, Khushboo Vashi
This commit is contained in:
parent
71a69f1dd4
commit
3ca29b18b5
@ -875,7 +875,7 @@ class Driver(BaseDriver):
|
||||
return False
|
||||
|
||||
# COL_NAME_KEYWORD
|
||||
if forTypes and category == 3:
|
||||
if forTypes and category == 1:
|
||||
return False
|
||||
|
||||
return True
|
||||
|
@ -42,7 +42,7 @@ if __name__ == '__main__':
|
||||
pattern = re.compile(r'"([^"]+)",\s*[^,]*\s*,\s*(.*)$')
|
||||
keyword_types = [
|
||||
u'UNRESERVED_KEYWORD', u'COL_NAME_KEYWORD',
|
||||
u'TYPE_FUNC_NAME_KEYWORD', u'RESERVED_KEYWORD'
|
||||
u'TYPE_FUNC_NAME_KEYWORD', u'RESERVED_KEYWORD'
|
||||
]
|
||||
|
||||
for line in ins:
|
||||
|
Loading…
Reference in New Issue
Block a user