summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/database/drivers/interbase/interbase_driver.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/system/database/drivers/interbase/interbase_driver.php b/system/database/drivers/interbase/interbase_driver.php
index 197c01401..8a156af53 100644
--- a/system/database/drivers/interbase/interbase_driver.php
+++ b/system/database/drivers/interbase/interbase_driver.php
@@ -419,8 +419,17 @@ SQL;
*/
public function _list_columns($table = '')
{
- // Not supported
- return FALSE;
+ $sql = <<<SQL
+ SELECT "RDB\$FIELD_NAME" FROM "RDB\$RELATION_FIELDS"
+ WHERE "RDB\$RELATION_NAME" NOT LIKE 'RDB$%'
+ AND "RDB\$RELATION_NAME" NOT LIKE 'MON$%'
+SQL;
+ if($table !== '')
+ {
+ $sql .= ' AND "RDB$RELATION_NAME"='.$table;
+ }
+
+ return $sql;
}
// --------------------------------------------------------------------