add warning for undefined column types
This commit is contained in:
		@@ -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);
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user