summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-12-31 08:54:37 +0000
committerDries Buytaert <dries@buytaert.net>2007-12-31 08:54:37 +0000
commit178c28535b5ed1a693c9e9cf5de4c703bc2bf3c6 (patch)
treee0a029015f481bd2ce1a85b3b73396244d91caf1 /modules/system/system.install
parentf04d4d17dd6a7c94bf10b564930a4448d5449c3d (diff)
downloadbrdo-178c28535b5ed1a693c9e9cf5de4c703bc2bf3c6.tar.gz
brdo-178c28535b5ed1a693c9e9cf5de4c703bc2bf3c6.tar.bz2
- Patch #204900 by webernet: code style fixes. Likely my last patch of the year. Fiew. Thanks all, and see you on the other side. :)
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 8020c11a3..a7d343471 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -267,12 +267,12 @@ function system_requirements($phase) {
*/
function system_install() {
if ($GLOBALS['db_type'] == 'pgsql') {
- /* create unsigned types */
+ // Create unsigned types.
db_query("CREATE DOMAIN int_unsigned integer CHECK (VALUE >= 0)");
db_query("CREATE DOMAIN smallint_unsigned smallint CHECK (VALUE >= 0)");
db_query("CREATE DOMAIN bigint_unsigned bigint CHECK (VALUE >= 0)");
- /* create functions */
+ // Create functions.
db_query('CREATE OR REPLACE FUNCTION "greatest"(numeric, numeric) RETURNS numeric AS
\'SELECT CASE WHEN (($1 > $2) OR ($2 IS NULL)) THEN $1 ELSE $2 END;\'
LANGUAGE \'sql\''