add warning for undefined column types

This commit is contained in:
Timo Hocker 2020-03-22 19:42:22 +01:00
parent 2d0aeb53cd
commit 5f95292d8e

View File

@ -59,6 +59,8 @@ function get_table_info (str) {
if (data.length > 0)
col.type = get_type (data.shift ());
if (typeof col.type === 'undefined')
console.error (`column type is undefined: ${col.name} table: ${name}`);
columns.push (col);
}