diff --git a/snippets/db/dot_parser.js b/snippets/db/dot_parser.js index 985ac74..994d245 100644 --- a/snippets/db/dot_parser.js +++ b/snippets/db/dot_parser.js @@ -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); }