[geeklog-cvs] geeklog: more pgsql arrays... this is the last of sql specific q...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Tue Jan 26 15:53:27 EST 2010


changeset 7621:b697aad4d39c
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/b697aad4d39c
user: stan <yankees26an at gmail.com>
date: Fri Jun 19 23:50:34 2009 -0400
description:
more pgsql arrays... this is the last of sql specific queries i hope :P

diffstat:

 public_html/admin/block.php   |  2 ++
 public_html/admin/sectest.php |  2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r e26d5f2652f6 -r b697aad4d39c public_html/admin/block.php
--- a/public_html/admin/block.php	Fri Jun 19 22:05:20 2009 -0400
+++ b/public_html/admin/block.php	Fri Jun 19 23:50:34 2009 -0400
@@ -196,6 +196,8 @@
         $sql['mssql'] .= "rdfupdated, rdflimit, onleft, phpblockfn, help, owner_id,group_id, ";
         $sql['mssql'] .= "perm_owner, perm_group, perm_members, perm_anon, allow_autotags FROM {$_TABLES['blocks']} WHERE bid ='$bid'";
 
+        $sql['pgsql'] = "SELECT * FROM {$_TABLES['blocks']} WHERE bid ='$bid'";
+        
         $result = DB_query($sql);
         $A = DB_fetchArray($result);
         $access = SEC_hasAccess($A['owner_id'],$A['group_id'],$A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']);
diff -r e26d5f2652f6 -r b697aad4d39c public_html/admin/sectest.php
--- a/public_html/admin/sectest.php	Fri Jun 19 22:05:20 2009 -0400
+++ b/public_html/admin/sectest.php	Fri Jun 19 23:50:34 2009 -0400
@@ -329,7 +329,7 @@
 
     // Note: We're not testing the 'sql' and 'language' directories.
 
-    if (($_CONF['allow_mysqldump'] == 1) && ($_DB_dbms == 'mysql')) {
+    if (($_CONF['allow_mysqldump'] == 1) && ($_DB_dbms == 'mysql') || $_DB_dbms=='pgsql') {
         if (makeTempfile($_CONF['backup_path'] . 'test.txt')) {
             $display .= doTest($url, 'backups/test.txt',
                                'backups ' . $LANG_SECTEST['directory']);



More information about the geeklog-cvs mailing list