Minor sql syntax update

This commit is contained in:
Timothy Warren 2012-04-12 15:24:47 -04:00
parent 773e7b8b80
commit b2ec6823a4

View File

@ -7,7 +7,7 @@
* @author Timothy J. Warren * @author Timothy J. Warren
* @copyright Copyright (c) 2012 * @copyright Copyright (c) 2012
* @link https://github.com/aviat4ion/Query * @link https://github.com/aviat4ion/Query
* @license http://philsturgeon.co.uk/code/dbad-license * @license http://philsturgeon.co.uk/code/dbad-license
*/ */
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
@ -192,7 +192,6 @@ SQL;
return <<<SQL return <<<SQL
SELECT "tablename" FROM "pg_tables" SELECT "tablename" FROM "pg_tables"
WHERE "tablename" LIKE 'pg\_%' WHERE "tablename" LIKE 'pg\_%'
OR "tablename" LIKE 'sql\%'
SQL; SQL;
} }
@ -224,7 +223,7 @@ SQL;
public function trigger_list() public function trigger_list()
{ {
return <<<SQL return <<<SQL
SELECT * SELECT *
FROM "information_schema"."triggers" FROM "information_schema"."triggers"
WHERE "trigger_schema" NOT IN WHERE "trigger_schema" NOT IN
('pg_catalog', 'information_schema') ('pg_catalog', 'information_schema')
@ -277,14 +276,14 @@ SQL;
ORDER BY "relname" ASC ORDER BY "relname" ASC
SQL; SQL;
} }
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
/** /**
* Return sql to list columns of the specified table * Return sql to list columns of the specified table
* *
* @param string $table * @param string $table
* @return string * @return string
*/ */
public function column_list($table) public function column_list($table)
{ {