summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-05-25 13:42:56 +0000
committerDries Buytaert <dries@buytaert.net>2009-05-25 13:42:56 +0000
commita98905f5c6696ef166ec797fc6ee80fe8f94f48f (patch)
tree8190afe432c33bf5756340bc432e84cdb5af4a1a /modules/system
parent76957a25e6eb2ce82fc3f52f6f4f97be4748f6e6 (diff)
downloadbrdo-a98905f5c6696ef166ec797fc6ee80fe8f94f48f.tar.gz
brdo-a98905f5c6696ef166ec797fc6ee80fe8f94f48f.tar.bz2
- Patch #471800 by stella: more code style fixes.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/system.install2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 483d6098a..8407e213b 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -316,6 +316,7 @@ function system_install() {
\'SELECT greatest($1, greatest($2, $3));\'
LANGUAGE \'sql\''
);
+ // Don't use {} around pg_proc table.
if (!db_query("SELECT COUNT(*) FROM pg_proc WHERE proname = 'rand'")->fetchField()) {
db_query('CREATE OR REPLACE FUNCTION "rand"() RETURNS float AS
\'SELECT random();\'
@@ -323,6 +324,7 @@ function system_install() {
);
}
+ // Don't use {} around pg_proc table.
if (!db_query("SELECT COUNT(*) FROM pg_proc WHERE proname = 'concat'")->fetchField()) {
db_query('CREATE OR REPLACE FUNCTION "concat"(text, text) RETURNS text AS
\'SELECT $1 || $2;\'