| @@ 36-47 (lines=12) @@ | ||
| 33 | return $count; |
|
| 34 | } |
|
| 35 | ||
| 36 | function _tableExistsNoPrefix($name) |
|
| 37 | { |
|
| 38 | if($this->_get_row_count_for_query('SHOW TABLES LIKE '.$this->pdo->quote($name)) > 0) |
|
| 39 | { |
|
| 40 | return true; |
|
| 41 | } |
|
| 42 | else if($this->_get_row_count_for_query('SELECT * FROM sqlite_master WHERE name LIKE '.$this->pdo->quote($name)) > 0) |
|
| 43 | { |
|
| 44 | return true; |
|
| 45 | } |
|
| 46 | return false; |
|
| 47 | } |
|
| 48 | ||
| 49 | function _tableExists($name) |
|
| 50 | { |
|
| @@ 49-60 (lines=12) @@ | ||
| 46 | return false; |
|
| 47 | } |
|
| 48 | ||
| 49 | function _tableExists($name) |
|
| 50 | { |
|
| 51 | if($this->_get_row_count_for_query('SHOW TABLES LIKE '.$this->pdo->quote('tbl'.$name)) > 0) |
|
| 52 | { |
|
| 53 | return true; |
|
| 54 | } |
|
| 55 | else if($this->_get_row_count_for_query('SELECT * FROM sqlite_master WHERE name LIKE '.$this->pdo->quote('tbl'.$name)) > 0) |
|
| 56 | { |
|
| 57 | return true; |
|
| 58 | } |
|
| 59 | return false; |
|
| 60 | } |
|
| 61 | ||
| 62 | function _viewExists($name) |
|
| 63 | { |
|
| @@ 62-73 (lines=12) @@ | ||
| 59 | return false; |
|
| 60 | } |
|
| 61 | ||
| 62 | function _viewExists($name) |
|
| 63 | { |
|
| 64 | if($this->_get_row_count_for_query('SHOW TABLES LIKE '.$this->pdo->quote('v'.$name)) > 0) |
|
| 65 | { |
|
| 66 | return true; |
|
| 67 | } |
|
| 68 | else if($this->_get_row_count_for_query('SELECT * FROM sqlite_master WHERE name LIKE '.$this->pdo->quote('v'.$name)) > 0) |
|
| 69 | { |
|
| 70 | return true; |
|
| 71 | } |
|
| 72 | return false; |
|
| 73 | } |
|
| 74 | ||
| 75 | function tableExists($name) |
|
| 76 | { |
|