Fixed some query escaping issues
This commit is contained in:
parent
10773e5a1e
commit
774ee1f74a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user