Fixed some query escaping issues

This commit is contained in:
Timothy Warren 2012-02-16 18:27:49 -05:00
parent 10773e5a1e
commit 774ee1f74a

View File

@ -138,9 +138,9 @@ class firebird {
function get_tables() function get_tables()
{ {
$sql = <<<SQL $sql = <<<SQL
SELECT "RDB$RELATION_NAME" FROM "RDB$RELATIONS" SELECT "RDB\$RELATION_NAME" FROM "RDB\$RELATIONS"
WHERE "RDB$RELATION_NAME" NOT LIKE 'RDB$%' WHERE "RDB\$RELATION_NAME" NOT LIKE 'RDB$%'
AND "RDB$RELATION_NAME" NOT LIKE 'MON$%' AND "RDB\$RELATION_NAME" NOT LIKE 'MON$%'
SQL; SQL;
$this->statement = $this->query($sql); $this->statement = $this->query($sql);
@ -163,9 +163,9 @@ SQL;
function get_system_tables() function get_system_tables()
{ {
$sql = <<<SQL $sql = <<<SQL
SELECT "RDB$RELATION_NAME" FROM "RDB$RELATIONS" SELECT "RDB\$RELATION_NAME" FROM "RDB\$RELATIONS"
WHERE "RDB$RELATION_NAME" LIKE 'RDB$%' WHERE "RDB\$RELATION_NAME" LIKE 'RDB$%'
OR "RDB$RELATION_NAME" LIKE 'MON$%'; OR "RDB\$RELATION_NAME" LIKE 'MON$%';
SQL; SQL;
$this->statement = $this->query($sql); $this->statement = $this->query($sql);