summaryrefslogtreecommitdiff
path: root/framework/Data/TDbCommand.php
diff options
context:
space:
mode:
authorwei <>2006-11-26 22:15:58 +0000
committerwei <>2006-11-26 22:15:58 +0000
commita8b3ebe8f62c3888b216d827c1c5dcba8a47d4e1 (patch)
tree5eef79dbc5e2f506047fa463cb427a40a7bd8441 /framework/Data/TDbCommand.php
parent6773dfe453682d2b39a26fbabef8e706bf6bb412 (diff)
Adding active record implementation.
Diffstat (limited to 'framework/Data/TDbCommand.php')
-rw-r--r--framework/Data/TDbCommand.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/framework/Data/TDbCommand.php b/framework/Data/TDbCommand.php
index 91b165fa..82e46a25 100644
--- a/framework/Data/TDbCommand.php
+++ b/framework/Data/TDbCommand.php
@@ -155,9 +155,9 @@ class TDbCommand extends TComponent
{
$this->prepare();
if($dataType===null)
- $this->_statement->bindParam($name,$value);
+ $this->_statement->bindValue($name,$value);
else
- $this->_statement->bindParam($name,$value,$dataType);
+ $this->_statement->bindValue($name,$value,$dataType);
}
/**
@@ -177,7 +177,11 @@ class TDbCommand extends TComponent
return $this->_statement->rowCount();
}
else
- return $this->getConnection()->getPdoInstance()->exec($this->getText());
+ {
+ $int = $this->getConnection()->getPdoInstance()->exec($this->getText());
+ var_dump($int);
+ return $int;
+ }
}
catch(Exception $e)
{