summaryrefslogtreecommitdiffstats
path: root/system/database/drivers/postgre/postgre_forge.php
diff options
context:
space:
mode:
authorTomasz T <tomasz154@10g.pl>2011-12-02 17:57:30 +0100
committerTomasz T <tomasz154@10g.pl>2011-12-02 18:00:39 +0100
commit717253f5c77a11b1b997069ff53bd2d2ab2e538c (patch)
tree51e759ec780ea9ba8fcb480eab5463bbdc0b7c27 /system/database/drivers/postgre/postgre_forge.php
parent740a2423b27ccc6a607615fd1c8c4c39aaffba0f (diff)
SELECT * FROM isn't that innocuous, changed to SELECT 1
Diffstat (limited to 'system/database/drivers/postgre/postgre_forge.php')
-rw-r--r--system/database/drivers/postgre/postgre_forge.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/postgre/postgre_forge.php b/system/database/drivers/postgre/postgre_forge.php
index 166cc4e6a..ddbce6062 100644
--- a/system/database/drivers/postgre/postgre_forge.php
+++ b/system/database/drivers/postgre/postgre_forge.php
@@ -83,7 +83,7 @@ class CI_DB_postgre_forge extends CI_DB_forge {
{
if ($this->db->table_exists($table))
{
- return "SELECT * FROM $table"; // Needs to return innocous but valid SQL statement
+ return "SELECT 1"; // Needs to return innocous but valid SQL statement
}
}