DB IO Class: if not PK auto found, set to NULL to skip return
In case no primary key is set and the auto detect does not return a primary key, set the primary key variable to 'NULL' string to trigger skip in returning insert id flow.
This commit is contained in:
@@ -661,7 +661,7 @@
|
||||
{
|
||||
$this->pk_name_table[$table] = $this->db_functions->_db_primary_key($table, $schema);
|
||||
}
|
||||
$this->pk_name = $this->pk_name_table[$table];
|
||||
$this->pk_name = $this->pk_name_table[$table] ? $this->pk_name_table[$table] : 'NULL';
|
||||
}
|
||||
if (!preg_match("/ returning /i", $this->query) && $this->pk_name)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user