add warning for undefined column types
This commit is contained in:
parent
2d0aeb53cd
commit
5f95292d8e
@ -59,6 +59,8 @@ function get_table_info (str) {
|
|||||||
if (data.length > 0)
|
if (data.length > 0)
|
||||||
col.type = get_type (data.shift ());
|
col.type = get_type (data.shift ());
|
||||||
|
|
||||||
|
if (typeof col.type === 'undefined')
|
||||||
|
console.error (`column type is undefined: ${col.name} table: ${name}`);
|
||||||
|
|
||||||
columns.push (col);
|
columns.push (col);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user