From b4acfa27e90e960e7dd431a73b6cca4345878130 Mon Sep 17 00:00:00 2001 From: Sylvain Joubert Date: Wed, 10 Nov 2021 09:03:47 +0100 Subject: [PATCH] ddl2cpp: Fix compatibility with pyparsing 3+ Fix #388 --- scripts/ddl2cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index 4e633a1a..b6cd0b2f 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -376,8 +376,8 @@ for create in tableCreations: print ('Error: datatype "' + sqlColumnType + '"" is not supported.') DataTypeError = True requireInsert = True - column.hasAutoValue = column.hasAutoValue or (autoId and sqlColumnName == 'id') - if column.hasAutoValue: + hasAutoValue = column.hasAutoValue or (autoId and sqlColumnName == 'id') + if hasAutoValue: traitslist.append(NAMESPACE + '::tag::must_not_insert') traitslist.append(NAMESPACE + '::tag::must_not_update') requireInsert = False