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