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:
Ashesh Vashi 2016-02-05 10:15:04 +05:30
parent 71a69f1dd4
commit 3ca29b18b5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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: