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 Vashipull/3/head
parent
71a69f1dd4
commit
3ca29b18b5
|
@ -875,7 +875,7 @@ class Driver(BaseDriver):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# COL_NAME_KEYWORD
|
# COL_NAME_KEYWORD
|
||||||
if forTypes and category == 3:
|
if forTypes and category == 1:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -42,7 +42,7 @@ if __name__ == '__main__':
|
||||||
pattern = re.compile(r'"([^"]+)",\s*[^,]*\s*,\s*(.*)$')
|
pattern = re.compile(r'"([^"]+)",\s*[^,]*\s*,\s*(.*)$')
|
||||||
keyword_types = [
|
keyword_types = [
|
||||||
u'UNRESERVED_KEYWORD', u'COL_NAME_KEYWORD',
|
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:
|
for line in ins:
|
||||||
|
|
Loading…
Reference in New Issue