0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

ddl2cpp: Fix compatibility with pyparsing 3+

Fix #388
This commit is contained in:
Sylvain Joubert 2021-11-10 09:03:47 +01:00 committed by Roland Bock
parent 7be5797c0f
commit b4acfa27e9

View File

@ -376,8 +376,8 @@ for create in tableCreations:
print ('Error: datatype "' + sqlColumnType + '"" is not supported.') print ('Error: datatype "' + sqlColumnType + '"" is not supported.')
DataTypeError = True DataTypeError = True
requireInsert = True requireInsert = True
column.hasAutoValue = column.hasAutoValue or (autoId and sqlColumnName == 'id') hasAutoValue = column.hasAutoValue or (autoId and sqlColumnName == 'id')
if column.hasAutoValue: if hasAutoValue:
traitslist.append(NAMESPACE + '::tag::must_not_insert') traitslist.append(NAMESPACE + '::tag::must_not_insert')
traitslist.append(NAMESPACE + '::tag::must_not_update') traitslist.append(NAMESPACE + '::tag::must_not_update')
requireInsert = False requireInsert = False