diff --git a/lib/adapter.js b/lib/adapter.js index b5738d6..df4c43a 100644 --- a/lib/adapter.js +++ b/lib/adapter.js @@ -382,8 +382,11 @@ module.exports = (function () { Object.keys(values).forEach(function(key) { values[key] = utils.prepareValue(values[key]); if (pk == key && pk == 'id') { - identityInsert = true; - //console.log(pk, '==', key); + var type = connections[connection].collections[collection].definition['id'].type; + if(type === 'number'){ + identityInsert = true; + //console.log(pk, '==', key); + } } }); var schemaName = getSchemaName(connection, collection);