$this->setLastException($e);
// Throw an SQL exception
- throw new SqlException(array($this, sprintf('Cannot write data to table '%s', is the table created?', $dataSetInstance->getTableName()), self::DB_CODE_TABLE_UNWRITEABLE), self::EXCEPTION_SQL_QUERY);
+ throw new SqlException(array(
+ $this,
+ sprintf('Cannot write data to table '%s', is the table created?', $dataSetInstance->getTableName()),
+ self::DB_CODE_TABLE_UNWRITEABLE
+ ),
+ self::EXCEPTION_SQL_QUERY
+ );
}
}
*
* @param $tableName Name of the table we need the primary key from
* @return $primaryKey Primary key column of the given table
+ * @todo Rename method to getPrimaryKeyFromTableInfo()
*/
public function getPrimaryKeyOfTable ($tableName) {
// Default key is null