diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-31 11:13:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-31 11:13:31 +0000 |
commit | 35c7673caeff18080433191e461ccb7874baadc2 (patch) | |
tree | 39b561248ad6608ebdb4ae212944293dcded5582 /includes/database/database.inc | |
parent | a1d1cb5c5691d1555491ea44a07fab4e6681e13f (diff) | |
download | brdo-35c7673caeff18080433191e461ccb7874baadc2.tar.gz brdo-35c7673caeff18080433191e461ccb7874baadc2.tar.bz2 |
- Patch #327480 by chx: remove DB specific code from simpletest.
Diffstat (limited to 'includes/database/database.inc')
-rw-r--r-- | includes/database/database.inc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/includes/database/database.inc b/includes/database/database.inc index b44846aa2..91c5ea4cb 100644 --- a/includes/database/database.inc +++ b/includes/database/database.inc @@ -1674,6 +1674,18 @@ function db_column_exists($table, $column) { return Database::getActiveConnection()->schema()->columnExists($table, $column); } + /** + * Find all tables that are like the specified base table name. + * + * @param table_expression + * An SQL expression, for example simpletest% . BEWARE: this is not + * prefixed, the caller should take care of that. + * @return + * Array, both the keys and the values are the matching tables. + */ +function db_find_tables($table_expression) { + return Database::getActiveConnection()->schema()->findTables($table_expression); +} /** * Given a Schema API field type, return the correct %-placeholder. |