Skip to content

Commit c2cbaab

Browse files
committed
Releasing 1.2.1
2 parents f3a31d3 + 5fd877e commit c2cbaab

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/TgDatabase/Criterion/CriteriaImpl.php

+7
Original file line numberDiff line numberDiff line change
@@ -247,5 +247,12 @@ public function quoteName($aliasOrIdentifier, $identifier = NULL) {
247247
return $this->database->quoteName($aliasOrIdentifier);
248248
}
249249

250+
/**
251+
* Returns the error from the database connection.
252+
* @return string error text
253+
*/
254+
public function error() {
255+
return $this->error();
256+
}
250257
}
251258

src/TgDatabase/DAO.php

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ public function describeTable() {
8080
return $this->database->describeTable($this->tableName);
8181
}
8282

83+
/**
84+
* Returns the error from the database connection.
85+
* @return string error text
86+
*/
87+
public function error() {
88+
return $this->database->error();
89+
}
90+
8391
/**
8492
* Creates a new criteria object for this DAO.
8593
*/

0 commit comments

Comments
 (0)