Date: 06/30/00
- Next message: athompso: "[phplib-dev] cvs commit"
- Previous message: kir: "[phplib-dev] cvs commit"
- Next in thread: athompso: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: athompso
Date: Sat Jul 1 00:57:16 2000
Modified files:
php-lib-stable/CHANGES
php-lib-stable/php/db_pgsql.inc
Log message:
Added null-query special case handling to db_pgsql.inc
(reported by Tony Cabot (toby <email protected>)
Index: php-lib-stable/CHANGES
diff -u php-lib-stable/CHANGES:1.5 php-lib-stable/CHANGES:1.6
--- php-lib-stable/CHANGES:1.5 Wed Jun 28 18:43:42 2000
+++ php-lib-stable/CHANGES Sat Jul 1 00:56:45 2000
@@ -1,4 +1,8 @@
-$Id: CHANGES,v 1.5 2000/06/28 16:43:42 athompso Exp $
+$Id: CHANGES,v 1.6 2000/06/30 22:56:45 athompso Exp $
+
+30-Jun-2000 athompso
+ - Added null-query special case handling to db_pgsql.inc
+ (reported by Tony Cabot (toby <email protected>)
28-Jun-2000 athompso
- Fixed typo in session.inc that prevent cookie_domain from working
Index: php-lib-stable/php/db_pgsql.inc
diff -u php-lib-stable/php/db_pgsql.inc:1.2 php-lib-stable/php/db_pgsql.inc:1.3
--- php-lib-stable/php/db_pgsql.inc:1.2 Tue Apr 25 08:04:57 2000
+++ php-lib-stable/php/db_pgsql.inc Sat Jul 1 00:56:45 2000
@@ -5,7 +5,7 @@
* Copyright (c) 1998,1999 SH Online Dienst GmbH
* Boris Erdmann, Kristian Koehntopp
*
- * $Id: db_pgsql.inc,v 1.2 2000/04/25 06:04:57 kk Exp $
+ * $Id: db_pgsql.inc,v 1.3 2000/06/30 22:56:45 athompso Exp $
*
*/
@@ -47,6 +47,14 @@
}
function query($Query_String) {
+ /* No empty queries, please, since PHP4 chokes on them. */
+ if ($Query_String == "")
+ /* The empty query string is passed on from the constructor,
+ * when calling the class without a query, e.g. in situations
+ * like these: '$db = new DB_Sql_Subclass;'
+ */
+ return 0;
+
$this->connect();
# printf("<br>Debug: query = %s<br>\n", $Query_String);
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: athompso: "[phplib-dev] cvs commit"
- Previous message: kir: "[phplib-dev] cvs commit"
- Next in thread: athompso: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

