$this->_transactionStarted = false;
}
- /**
- * Appends +LIMIT+ and +OFFSET+ options to a SQL statement.
- *
- * @param string $sql
- * @param array $options
- * @return string
- */
- public function addLimitOffset($sql, $options)
- {
- if (isset($options['limit']) && $limit = $options['limit']) {
- if (isset($options['offset']) && $offset = $options['offset']) {
- $sql .= " LIMIT $offset, $limit";
- } else {
- $sql .= " LIMIT $limit";
- }
- }
- return $sql;
- }
-
/*##########################################################################
# Protected
$this->_connection->autocommit(false);
}
- /**
- * Appends +LIMIT+ and +OFFSET+ options to a SQL statement.
- *
- * @param string $sql
- * @param array $options
- * @return string
- */
- public function addLimitOffset($sql, $options)
- {
- if (isset($options['limit']) && $limit = $options['limit']) {
- if (isset($options['offset']) && $offset = $options['offset']) {
- $sql .= " LIMIT $offset, $limit";
- } else {
- $sql .= " LIMIT $limit";
- }
- }
- return $sql;
- }
-
/*##########################################################################
# Protected