mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
QQQ-27: fixed bug when a primary key not specified
This commit is contained in:
@ -278,8 +278,12 @@ public class QCommandBuilder
|
||||
.build());
|
||||
*/
|
||||
|
||||
QFieldMetaData primaryKeyField = table.getField(table.getPrimaryKeyField());
|
||||
addPrimaryKeyOrKeysOption(updateCommand, "update");
|
||||
QFieldMetaData primaryKeyField = null;
|
||||
if(table.getPrimaryKeyField() != null)
|
||||
{
|
||||
primaryKeyField = table.getField(table.getPrimaryKeyField());
|
||||
addPrimaryKeyOrKeysOption(updateCommand, "update");
|
||||
}
|
||||
|
||||
for(QFieldMetaData field : table.getFields().values())
|
||||
{
|
||||
|
Reference in New Issue
Block a user