allow to use columns, which are not unique, for read

This commit is contained in:
Ralf Becker 2006-07-08 00:38:06 +00:00
parent bd7f7f417d
commit 325d849332

View File

@ -279,6 +279,16 @@ class so_sql
} }
} }
} }
if (!$query) // no unique key in keys, lets try everything else
{
foreach($this->db_data_cols as $db_col => $col)
{
if ($this->data[$col] != '')
{
$query[$db_col] = $this->data[$col];
}
}
}
if (!$query) // keys has no cols if (!$query) // keys has no cols
{ {
$this->db2data(); $this->db2data();