Fix a bug that would make database insertion break when using PDO

develop
Sven Slootweg 12 years ago
parent abb0712c97
commit 98f2145938

@ -495,7 +495,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
$query = "UPDATE {$this->table_name} SET {$sQueryKeysValues} WHERE `{$this->id_field}` = '{$this->sId}'"; $query = "UPDATE {$this->table_name} SET {$sQueryKeysValues} WHERE `{$this->id_field}` = '{$this->sId}'";
} }
if($result = mysql_query($query)) if($result = mysql_query_cached($query, 0))
{ {
if($insert_mode == CPHP_INSERTMODE_INSERT) if($insert_mode == CPHP_INSERTMODE_INSERT)
{ {

Loading…
Cancel
Save