Guillermo Iguaran
1c23887ab0
Bump ARel to 2.1.3
2011-06-27 15:58:40 -05:00
Santiago Pastorino
d6413f043c
Merge pull request #1848 from raviolicode/postgresql_order_multiple_params
...
Fix for complex ordering of multiple columns on postgresql
2011-06-24 13:09:33 -07:00
Lucia Escanellas
9734a416fa
Improve ordering of multiple columns on postgresql
...
* Only on postgresql, order("first asc, second asc") was invalid
* Closes #1720
2011-06-24 13:37:08 -03:00
Jon Leighton
87d6865bf7
Apply the default scope earlier when doing calculations. Fixes #1682 .
2011-06-23 19:57:49 +01:00
Ken Collins
b9bfb916e4
Update SQL Server db related rake tasks.
...
* Uses open source smoscript since scptxfr came out in 2000.
* Uses sqlcmd which replaces osql.
* Takes advantage of host/user/pass passed down by TinyTDS.
2011-06-23 12:41:39 -04:00
Aaron Patterson
09866cef17
Merge pull request #1790 from ernie/reverse_sql_order_fix
...
Support reversal of ARel orderings in reverse_sql_order
2011-06-22 08:30:52 -07:00
Aaron Patterson
ceb5bbbafc
Merge pull request #1632 from tardate/pg_schema_fu
...
Improving PostgreSQL adapter schema-awareness
2011-06-21 10:22:20 -07:00
Ernie Miller
08f3f30994
Support reversal of ARel orderings in reverse_sql_order
2011-06-20 14:15:19 -04:00
José Valim
89b3293a54
Merge pull request #1784 from gazay/3-1-stable-shadowing-variables
...
Removing shadowing outer local variables warnings
2011-06-20 06:48:17 -07:00
Alexey Gaziev
93f488e7fa
Removed shadowing variable warning in activerecord railties
2011-06-20 17:28:59 +04:00
Daniel Azuma
140ba34aa9
Add missing require 'set'
2011-06-20 00:24:35 -07:00
José Valim
7d4606156b
Merge pull request #1763 from grantneufeld/schema_column_exists_options_hash
...
Fix default options argument on ActiveRecord::ConnectionAdaptors::Table#column_exists?
2011-06-18 19:34:39 -07:00
Paul Gallagher
2b3d67fdaf
Merge remote branch 'rails/master' into pg_schema_fu
2011-06-19 10:21:15 +08:00
Paul Gallagher
b0d59907f7
Make PostgreSQL adapter view-compatible
...
* amongst other things, allows meta_search to run against view-backed models
2011-06-19 10:14:17 +08:00
Steve Hodgkiss
50444204cc
Fix inconsistencies by being polite to the wrapped body. Needed for Rack::Sendfile to function properly. See issue #1761 .
2011-06-18 22:30:01 +01:00
Grant Neufeld
3cc83a8f24
Changed the default value for the options argument on ActiveRecord::ConnectionAdapters::Table#column_exists? from nil to an empty Hash {}.
...
That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements##column_exists? expects options to be a Hash.
When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options.
2011-06-18 14:38:38 -06:00
Xavier Noria
146ec2d1df
Merge branch 'master' of git://github.com/lifo/docrails
2011-06-18 10:11:47 +02:00
Lucia Escanellas
144a388dec
Update remove_index documentation
...
* Changes should better reflect present code behavior
* Related to issue: https://github.com/rails/rails/issues/1624
2011-06-17 16:30:40 -03:00
Guillermo Iguaran
301cad4476
Bump to mysql2 0.3.6
2011-06-17 11:27:37 -05:00
Jon Leighton
e510c2c642
Add require 'pathname' as it has not already been required in some circumstances
2011-06-17 14:55:34 +01:00
Aaron Patterson
ba1b88fda6
Merge pull request #1636 from metaskills/upstream/3-1-stable
...
Allow the connection pool's #table_exists? method to give the connections
2011-06-17 00:02:45 -07:00
Jon Leighton
be99ae78c9
Perf fix - Use an instance variable instead of a class_attribute. Thanks @josevalim and @jhawthorn for the prompting.
2011-06-16 21:13:56 +01:00
Arun Agrawal
536e1566b6
Bump mysql2 to 0.3.5
2011-06-16 10:45:58 +05:30
Santiago Pastorino and José Ignacio Costa
e445a79562
Bump mysql2 up
2011-06-16 01:05:45 -03:00
Andrew White
5d655aabcb
Pass mass-assignment options to nested models - closes #1673 .
2011-06-13 13:02:51 +01:00
Andrew White
987afa583e
Rename tests to reflect associations
2011-06-13 10:01:38 +01:00
Jon Leighton
86bbba1ffb
Add support for using an ARCONFIG environment variable to specify the location of the config.yml file for running the tests
2011-06-12 19:08:16 +01:00
Jon Leighton
15e289147e
Oops, this should have been in the last commit ⚡
2011-06-12 19:05:29 +01:00
Jon Leighton
c52520166b
Make assert_no_queries literally enforce that there are no queries. As in, not a single line of SQL should be sent to the database, not even stuff that is ignored by assert_queries. The argument being that if you write assert_no_queries, you really do not want there to be any queries.
2011-06-12 18:50:24 +01:00
Jon Leighton
232c66a1ba
If we're going to use a global variable, let's at least namespace it
2011-06-12 18:38:39 +01:00
Jon Leighton
b09bbdb8bf
Replace inline lambdas with named methods
2011-06-12 18:19:22 +01:00
Jon Leighton
14e6bbb149
Refactor tests to be less brittle
2011-06-12 18:19:21 +01:00
Jon Leighton
de01a64102
Move BEGIN and COMMIT into IGNORED_SQL rather than having them as a special case in assert_queries
2011-06-12 18:19:21 +01:00
benedikt
fa8dfad765
Don't wrap operations on collection associations in transactions when they are not needed, so the connection adapter does not send empty BEGIN COMMIT transactions blocks to the database.
2011-06-12 18:19:21 +01:00
Guillermo Iguaran
657ba2a9f0
Remove trailing whitespaces
2011-06-12 10:31:21 -05:00
Paul Gallagher
f8c4b374c8
make extract_schema_and_table a private method
2011-06-11 18:34:09 +08:00
Paul Gallagher
1d7c751bf7
remove table quoting in primary_key method
...
* add/cleanup tests
2011-06-11 02:21:24 +08:00
Ken Collins
c791e2d034
Allow the connection pool's #table_exists? method to give the connections #table_exists? method a chance.
2011-06-10 13:15:58 -04:00
Paul Gallagher
019c263633
apply private method indentation convention
...
* tidy test code and fix my typo
2011-06-10 22:48:58 +08:00
Paul Gallagher
5c7f8c929b
Improve PostgreSQL adapter schema-awareness
...
* table_exists? scoped by schema search path unless schema is explicitly named. Added tests and doc to clarify the behaviour
* extract_schema_and_table tests and implementation extended to cover all cases
* primary_key does not ignore schema information
* add current_schema and schema_exists? methods
* more robust table referencing in insert_sql and sql_for_insert methods
2011-06-10 21:52:25 +08:00
Brian Quinn
9f2e91414f
Ensure engine migrations are copied in the same sequence that they are required.
2011-06-10 12:11:45 +01:00
Damien Mathieu
84f71e42b7
don't reinitialize the arel_table unless the table_name changes
2011-06-09 14:56:07 -07:00
Jon Leighton
4b371b602b
Print out information about whether the identity map is on or off when running unit tests
2011-06-09 20:20:51 +01:00
Jon Leighton
e48829946d
Update the RUNNING_UNIT_TESTS file
2011-06-09 20:20:51 +01:00
José Valim
af3f0b6204
Merge pull request #1591 from smartinez87/unused
...
Fix "warning: assigned but unused variable" on AR tests
2011-06-08 23:36:49 -07:00
Sebastian Martinez
9af4e803ec
Remove unused 'y' variable.
2011-06-08 23:13:59 -03:00
Sebastian Martinez
0b86ac244c
Remove unused 'quoted_column_names' variable.
2011-06-08 23:13:43 -03:00
Rodrigo Navarro
8166e4b0c3
No need to create a new Arel::Table, as the arel_table method already creates a new one
2011-06-08 16:56:01 -03:00
Raimonds Simanovskis
e58ee1dccc
Do not hardcode :id as it was ignored by mass assignment filter
...
As a result test was failing on Oracle where ids are assigned by default from 1000
2011-06-08 11:56:23 +03:00
Santiago Pastorino
1d3618a9b4
remove warning: assigned but unused variable
2011-06-08 00:26:09 -03:00