]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-17020 dml: native pgsql driver - minor coding style improvement
authorskodak <skodak>
Tue, 28 Oct 2008 12:04:10 +0000 (12:04 +0000)
committerskodak <skodak>
Tue, 28 Oct 2008 12:04:10 +0000 (12:04 +0000)
lib/dml/pgsql_native_moodle_database.php

index fc11b288033357af57786a80e9da264ffd9cf7a2..d0960940a84ba5093f086872f082a539911eb1d3 100644 (file)
@@ -108,7 +108,7 @@ class pgsql_native_moodle_database extends moodle_database {
         }
         pg_set_client_encoding($this->pgsql, 'utf8');
         // find out the bytea oid
-        $sql = "select oid from pg_type where typname = 'bytea'";
+        $sql = "SELECT oid FROM pg_type WHERE typname = 'bytea'";
         $result = pg_query($this->pgsql, $sql);
         if ($result === false) {
             return false;