summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2013-08-14Uses table alias in WHEREVictor Andrée
If a table alias is used for the main table, it's not valid according to the SQL standard to refer to it by it's "real name" (see http://www.postgresql.org/docs/8.2/static/queries-table-expressions.html #QUERIES-TABLE-ALIASES). This causes problems when doing JOIN with a table alias for the "main table", since previous code always used table name. Now, we check for a table alias.
2013-05-08Ignore result columns when calling a aggregate functionTasso Evangelista
2013-04-16Add support for T-SQL style TOP clausesSebastien Bariteau
2013-01-23Remove obselete testing systemSimon Holywell
2013-01-23Remove duplicate code from test bootstrapSimon Holywell
2013-01-23Separate test for multiple connection cachesSimon Holywell
2013-01-23Merge branch 'develop' into multiple-connectionsSimon Holywell
Conflicts: test/test_classes.php test/test_queries.php
2013-01-23Finish transferring tests into PHPUnitSimon Holywell
2013-01-23Merge remote-tracking branch 'tag/dev-multi' into multiple-connectionsSimon Holywell
2013-01-22Add in more phpunit tests\!Simon Holywell
2013-01-22Apparently not all files were included in previous commit.Tom Gregory
2013-01-22Merge remote-tracking branch 'upstream/develop' into dev-multi. Updated ↵Tom Gregory
documentation to rat format, and tests to use phpunit. (Resolved)Conflicts: README.markdown idiorm.php test/test_queries.php
2013-01-21Add more query building testsSimon Holywell
2013-01-18Add more tests to suiteSimon Holywell
2013-01-18Move out non-query gen testsSimon Holywell
2013-01-18Move more query tests over to PHPUnitSimon Holywell
2013-01-17Begin moving query building tests into phpunitSimon Holywell
2013-01-15Add ResultSet functionality to IdiormSimon Holywell
2013-01-15Add in some PHPUnit testsSimon Holywell
2013-01-15Add ArrayAccess to ORM propertiesSimon Holywell
2013-01-04Add HAVING clause support to query builderSimon Holywell
2013-01-04Issue #74 escaping quote symbols in "_quote_identifier_part"Simon Holywell
2013-01-03Issue #90 When using set_expr alone it doesn't trigger query creationSimon Holywell
2013-01-03Add test for get_last_statementSimon Holywell
2012-11-26Add raw_execute() to ORMtag
2012-11-26Fixed query logging for delete_many; added unit test for delete_manytag
2012-11-23Multiple connection support for Idiormtag
Mutiple connections code, including documentation and unit tests. Utilizes key names to distinguish connections, but uses a default connection if none specified. I don't (yet) use multiple connections in my work (it's pending), so this has not been tested "in the wild". Added unit tests with additional connections, ran unit tests for Paris against this build too, so an unmodified Paris is forward-compatible with this commit (mulitple connections support not yet coded for Paris). Does *NOT* add support for queries across multiple connections. (I don't even want to go there ...) ##### Edge-case compatibility breaks: * ORM::_setup_identifier_quote_character visibility was changed to protected (which was likely original intent, judging by prefixed name) * May break compatibility if ORM has been extended, **and** subclasses directly utilize `::_config`, `::_db`, `::_query_log`, or `::_query_cache` instead of using pre-existing accessor methods. (Paris does not do this; all Paris tests pass) * Re-use of `Tester` class outside of Idiorm repo, as `Tester::check_equal()` was renamed to `Tester::check_equal_query()` ##### Other notes New method: `ORM::get_connection_keys()`. New `Tester` method: `Tester::check_equal_string()`. TODO: Consider adding methods to get (connection-specific) configuration info.
2012-11-21Add raw_execute() to ORMtag
2012-11-21Fixed query logging for delete_many; added unit test for delete_manytag
2012-11-14Issue #57 _log_query errors when given raw ? or %Simon Holywell
Thanks to Jeff Roberson <[email protected]> for his regex skills.
2012-11-12Handle ambiguous column names when joining two tablesgerard sychay
2012-11-12Add set_expr() closing issues #43 & #59Simon Holywell
2012-11-12Issue #24 Add group_by_expr functionSimon Holywell
2012-11-12Issue #16 Aggregate function supportSimon Holywell
2012-11-12select_many and select_many_expr issues #49 and #69Simon Holywell
2012-11-08Escape sprintf % chars in queriesKunio Murasawa
Thanks m92o
2012-08-28Merge remote-tracking branch 'sandermarechal/set-array' into developDurham Hale
2012-08-28Merge remote-tracking branch 'sandermarechal/raw-query' into developDurham Hale
2011-03-03Rename order_raw to order_by_exprSander Marechal
2011-03-03Update multiple properties at onceSander Marechal
This change alters the `set` method so you can update multiple properties at once, by passing an associative array top `set`.
2011-03-02Allow raw queries without parametersSander Marechal
This is useful for e.g. MySQL `LOCK TABLE` or SQLite `VACUUM` commands which usually do not require parameters.
2011-03-02Add support for raw `ORDER BY` clauses.Sander Marechal
This is useful when you need to order results by something other than a column name, like the output of an SQL function.
2011-01-30Issue #12: Fix incorrect quoting of column wildcard. Thanks pewterfish.Jamie Matthews
2011-01-22Add support for GROUP BY - issue #13Jamie Matthews
2011-01-22Add support for DISTINCT - issue #13Jamie Matthews
2011-01-22Fix a failing test caused by count() refactorJamie Matthews
2011-01-08Add simple query caching - issue #11Jamie Matthews
2010-11-03Add where_null and where_not_null methods. Thanks for the suggestion, artcijsgJamie Matthews
2010-11-03Parameters to where_raw method are now optionalJamie Matthews
2010-11-03Add where_not_equal method. Thanks for the suggestion, arcijsgJamie Matthews