From 64a122b64a49f4c8dfd8c1890a3fc83888e5a0e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cdigitalist=2Eru=E2=80=9D?= <“strangeqargo@gmail.com”> Date: Tue, 22 Mar 2016 00:27:01 +0300 Subject: [PATCH] ddl2cpp solutions --- scripts/ddl2cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index 370a6ba5..4c2d0b1c 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -127,7 +127,7 @@ types = { 'float': 'floating_point', 'date' : 'day_point', 'datetime' : 'time_point', - 'timestamp' : 'time_point', + #'timestamp' : 'time_point', } @@ -185,7 +185,7 @@ for create in tableCreations: try: traitslist = [NAMESPACE + '::' + types[sqlColumnType]]; except KeyError as e: - print ('Error: datatype "' + sqlColumnType + '"" is not supported. Implement it (examples: sqlpp11/data_types) or raise an issue on github') + print ('Error: datatype "' + sqlColumnType + '"" is not supported.') DataTypeError = True requireInsert = True if column.hasAutoValue: @@ -224,4 +224,8 @@ print('}', file=header) print('#endif', file=header) if (DataTypeError): print("Error: unsupported datatypes." ) + print("Possible solutions:") + print("A) Implement this datatype (examples: sqlpp11/data_types)" ) + print("B) Extend/upgrade ddl2cpp (edit types map)" ) + print("C) Raise an issue on github" ) sys.exit(10) #return non-zero error code, we might need it for automation