Skip to content

Commit

Permalink
Release version 1.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
FaaPz committed Jan 12, 2016
1 parent 9f376e1 commit 28f5fab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### Changelog

##### v1.9.3
+ Updated `InsertStatement` class with:
- Added `$insertId` argument in `execute()` method

##### v1.9.2
+ Updated `Database` class with:
- Fixed `$options` argument in `__construct()` method
Expand All @@ -9,7 +13,7 @@
- Fixed all aggregates

##### v1.9.0
+ Added `whereMany` method
+ Added `whereMany()` method
+ Updated `limit()` method

> Contributed by [bmutinda](https://github.com/bmutinda) and [scheras](https://github.com/scheras). Thanks!
Expand Down Expand Up @@ -37,7 +41,7 @@
+ Updated `StatementContainer` class with:
- Added `$table` argument in `delete()` method
+ Updated `WhereClause` class with:
- Fixed `orWhereLike()`
- Fixed `orWhereLike()` method

##### v1.7.2
+ Updated `SelectStatement` class with:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "slim/pdo",
"description": "PDO database library for Slim Framework",
"version": "1.9.2",
"version": "1.9.3",
"type": "library",
"keywords": ["pdo", "database", "slim", "framework"],
"homepage": "https://github.com/FaaPz/Slim-PDO",
Expand Down
8 changes: 6 additions & 2 deletions src/PDO/Statement/InsertStatement.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,15 @@ public function __toString()
}

/**
* @param bool $insertId
*
* @return string
*/
public function execute()
public function execute($insertId = true)
{
parent::execute();
if (!$insertId) {
return parent::execute();
}

return $this->dbh->lastInsertId();
}
Expand Down
1 change: 1 addition & 0 deletions src/PDO/Statement/StatementContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public function orderBy($statement, $order = 'ASC')

/**
* @param $number
* @param null $end
*
* @return $this
*/
Expand Down

0 comments on commit 28f5fab

Please sign in to comment.