[Cs-webapplibs-commits] SF.net SVN: cs-webapplibs:[198] trunk/0.4
Status: Beta
Brought to you by:
crazedsanity
|
From: <cra...@us...> - 2011-01-27 03:55:16
|
Revision: 198
http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=198&view=rev
Author: crazedsanity
Date: 2011-01-27 03:55:10 +0000 (Thu, 27 Jan 2011)
Log Message:
-----------
Return the last SQL statement/query.
/cs_phpDB.class.php:
* get_last_query():
-- returns the last SQL statement from dbLayerObj (lastQuery var)
/db_types/cs_phpDB__mysql.class.php:
* MAIN:::
-- lastQuery changed to public from protected
/db_types/cs_phpDB__pgsql.class.php:
* MAIN:::
-- lastQuery changed to public from protected
/db_types/cs_phpDB__sqlite.class.php:
* MAIN:::
-- lastQuery changed to public from protected
Modified Paths:
--------------
trunk/0.4/cs_phpDB.class.php
trunk/0.4/db_types/cs_phpDB__mysql.class.php
trunk/0.4/db_types/cs_phpDB__pgsql.class.php
trunk/0.4/db_types/cs_phpDB__sqlite.class.php
Modified: trunk/0.4/cs_phpDB.class.php
===================================================================
--- trunk/0.4/cs_phpDB.class.php 2011-01-26 18:09:30 UTC (rev 197)
+++ trunk/0.4/cs_phpDB.class.php 2011-01-27 03:55:10 UTC (rev 198)
@@ -252,6 +252,14 @@
return($this->dbLayerObj->is_connected());
}//end is_connected()
//=========================================================================
+
+
+
+ //=========================================================================
+ public function get_last_query() {
+ return($this->dbLayerObj->lastQuery);
+ }//end get_last_query()
+ //=========================================================================
} // end class phpDB
?>
Modified: trunk/0.4/db_types/cs_phpDB__mysql.class.php
===================================================================
--- trunk/0.4/db_types/cs_phpDB__mysql.class.php 2011-01-26 18:09:30 UTC (rev 197)
+++ trunk/0.4/db_types/cs_phpDB__mysql.class.php 2011-01-27 03:55:10 UTC (rev 198)
@@ -26,7 +26,7 @@
protected $inTrans = FALSE;
/** Holds the last query performed. */
- protected $lastQuery = NULL;
+ public $lastQuery = NULL;
/** List of queries that have been run */
protected $queryList=array();
Modified: trunk/0.4/db_types/cs_phpDB__pgsql.class.php
===================================================================
--- trunk/0.4/db_types/cs_phpDB__pgsql.class.php 2011-01-26 18:09:30 UTC (rev 197)
+++ trunk/0.4/db_types/cs_phpDB__pgsql.class.php 2011-01-27 03:55:10 UTC (rev 198)
@@ -44,7 +44,7 @@
protected $inTrans = FALSE;
/** Holds the last query performed. */
- protected $lastQuery = NULL;
+ public $lastQuery = NULL;
/** List of queries that have been run */
protected $queryList=array();
Modified: trunk/0.4/db_types/cs_phpDB__sqlite.class.php
===================================================================
--- trunk/0.4/db_types/cs_phpDB__sqlite.class.php 2011-01-26 18:09:30 UTC (rev 197)
+++ trunk/0.4/db_types/cs_phpDB__sqlite.class.php 2011-01-27 03:55:10 UTC (rev 198)
@@ -26,7 +26,7 @@
protected $inTrans = FALSE;
/** Holds the last query performed. */
- protected $lastQuery = NULL;
+ public $lastQuery = NULL;
/** List of queries that have been run */
protected $queryList=array();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|