Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

SQLite $select->combine() support #154

Merged
merged 2 commits into from
Aug 9, 2016
Merged

SQLite $select->combine() support #154

merged 2 commits into from
Aug 9, 2016

Conversation

mwillbanks
Copy link
Contributor

SQLite does not allow parentheses in a union. You can find this in the
documentation on SQLite located at:
https://www.sqlite.org/lang_select.html as a secondary, you may look to
a tutorial on unions in SQLite at:
http://www.sqlitetutorial.net/sqlite-union/

This resolves issue #75 - SQLite error on UNION.

SQLite does not allow parentheses in a union.  You can find this in the
documentation on SQLite located at:
https://www.sqlite.org/lang_select.html as a secondary, you may look to
a tutorial on unions in SQLite at:
http://www.sqlitetutorial.net/sqlite-union/

This resolves issue #75 - SQLite error on UNION.
* @covers Zend\Db\Sql\Platform\Sqlite\SelectDecorator::processOffset
* @dataProvider dataProvider
*/
public function testGetSqlString(Select $select, $ignore, $alsoIgnore, $expectedSql)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give a more descriptive name, please? What is the behavior you're testing? E.g., "testGetSqlStringCorrectlyGeneratesUnionSyntaxFromCombine".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can, however, the existing tests on the platform all utilized this exact behavior, see the oracle and mysql tests for example.

* Change method names in tests to better relect the test
* Update PHPDoc tags in methods
@weierophinney weierophinney added this to the 2.8.2 milestone Aug 9, 2016
@weierophinney weierophinney merged commit 548cc5e into zendframework:master Aug 9, 2016
weierophinney added a commit that referenced this pull request Aug 9, 2016
weierophinney added a commit that referenced this pull request Aug 9, 2016
weierophinney added a commit that referenced this pull request Aug 9, 2016
weierophinney added a commit that referenced this pull request Aug 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants