alfateam / orange-orm

The ultimate ORM for Node and Typescript
https://orange-orm.io
ISC License
675 stars 20 forks source link

Inserting with skipOnConflict on whole table yields incorrect sql: #63

Closed lroal closed 10 months ago

lroal commented 10 months ago
const db2 = db({
      vendor: {
        concurrency: 'skipOnConflict',
      },      
    });

  const george = await db2.vendor.insert({
      id: 1,
      name: 'John',
      balance: 100,
      isActive: true
  });

Inserting with skipOnConflict on whole table yields incorrect sql: INSERT INTO vendor (id,name,balance,isActive) VALUES (1,?,100,?) ON CONFLICT(id) DO UPDATE SET