Revize 1720
Přidáno uživatelem Ondřej Fibich před asi 12 roky(ů)
freenetis/branches/1.1/system/libraries/ORM.php | ||
---|---|---|
$cache[$column_name] = ($this->db->query("
|
||
SELECT COUNT(*) AS count
|
||
FROM INFORMATION_SCHEMA.COLUMNS
|
||
WHERE table_name = " . $this->db->escape($this->table_name) . "
|
||
WHERE table_schema LIKE " . $this->db->escape(Config::get('db_name')) . "
|
||
AND table_name LIKE " . $this->db->escape($this->table_name) . "
|
||
AND column_name LIKE " . $this->db->escape($column_name) . "
|
||
")->current()->count == 1);
|
||
// get result
|
Také k dispozici: Unified diff
Merge zmen do 1.1
Oprava:
- #353: zacykleni po pridani tarifu - spusobeno chybnym dotazem has_column (SQL dotaz z nejakeho duvodu bere v potaz i okolni databaze)