If I have a table without column id, when trying to create a new row it gives error:
{ [Error: ER_BAD_FIELD_ERROR: Unknown column 'id' in 'field list']
code: 'ER_BAD_FIELD_ERROR',
errno: 1054,
sqlState: '42S22',
index: 0 }
In the logs of mysql database I see an INSERT with ",id = NULL" added at the end.
After debugging I realize that this is added in /lib/schema.js on line 260
If I have a table without column
id
, when trying to create a new row it gives error: { [Error: ER_BAD_FIELD_ERROR: Unknown column 'id' in 'field list'] code: 'ER_BAD_FIELD_ERROR', errno: 1054, sqlState: '42S22', index: 0 }In the logs of mysql database I see an INSERT with ",
id
= NULL" added at the end.After debugging I realize that this is added in /lib/schema.js on line 260
Is it correctly or I misunderstood something? How can I use jugglingdb on tables without "id" column?