From ebe35517b35dc87eaec1333263cb78e9bd4ef2e1 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 2 Feb 2007 05:29:00 +0000 Subject: add unit test for sqlmap statement extends --- framework/Data/SqlMap/Statements/TMappedStatement.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'framework/Data/SqlMap/Statements/TMappedStatement.php') diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php index feba00a4..e56e73ce 100644 --- a/framework/Data/SqlMap/Statements/TMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TMappedStatement.php @@ -122,6 +122,11 @@ class TMappedStatement extends TComponent implements IMappedStatement $this->initialGroupByResults(); } + public function getSqlString() + { + return $this->getStatement()->getSqlText()->getPreparedStatement()->getPreparedSql(); + } + /** * Execute SQL Query. * @param IDbConnection database connection -- cgit v1.2.3