mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +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());
|
.build());
|
||||||
*/
|
*/
|
||||||
|
|
||||||
QFieldMetaData primaryKeyField = table.getField(table.getPrimaryKeyField());
|
QFieldMetaData primaryKeyField = null;
|
||||||
|
if(table.getPrimaryKeyField() != null)
|
||||||
|
{
|
||||||
|
primaryKeyField = table.getField(table.getPrimaryKeyField());
|
||||||
addPrimaryKeyOrKeysOption(updateCommand, "update");
|
addPrimaryKeyOrKeysOption(updateCommand, "update");
|
||||||
|
}
|
||||||
|
|
||||||
for(QFieldMetaData field : table.getFields().values())
|
for(QFieldMetaData field : table.getFields().values())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user