FIX bug due changes Data_SQL

This commit is contained in:
sparkyx 2025-05-18 15:31:02 +02:00
parent 8befe04534
commit 70bae8b1b7
17 changed files with 116 additions and 39 deletions

View file

@ -103,7 +103,7 @@ abstract class Data_SQL
var $type; //! Type of the data
var $date_format; //! defaullt date format
var $default;
var $table;
var $table;
public function __toString(): string
{

View file

@ -195,7 +195,7 @@ abstract class Table_Data_SQL extends Data_SQL
$pk=$this->primary_key;
// primary cannot be null or empty
if (trim($this->$pk??"")==="" || $this->$pk===null) {
$this->pk=-1;
$this->$pk=-1;
return false;
}