Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | revises EXPLAIN tests for SQLite3 | Xavier Noria | 2011-11-06 | 1 | -3/+3 |
| | | | | | | | | | | The output in Travis is a bit different. The SQLite documentation (http://www.sqlite.org/eqp.html) warns output may change dramatically between releases. I do not want to mock the result set because I want a real EXPLAIN to happen. I prefer a test that may fail in future releases than a test that may give false positives in future releases. | ||||
* | Merge pull request #3521 from ↵ | Aaron Patterson | 2011-11-06 | 1 | -0/+4 |
| | | | | | | nulogy/fix_postgres_adapter_to_handle_spaces_between_schemas Fix postgres adapter to handle spaces between schemas | ||||
* | implements AR::Relation#explain | Xavier Noria | 2011-11-05 | 3 | -0/+71 |
| | | | | | | | | | | | | | | | | | | | This is a first implementation, EXPLAIN is highly dependent on the database and I have made some compromises. On one hand, the method allows you to run the most common EXPLAIN and that's it. If you want EXPLAIN ANALYZE in PostgreSQL you need to do it by hand. On the other hand, I've tried to construct a string as close as possible to the ones built by the respective shells. The rationale is that IMO the user should feel at home with the output and recognize it at first sight. Per database. I don't know whether this implementation is going to work well. Let's see whether people like it. | ||||
* | AR changes to support creating ordered (asc, desc) indexes | Vlad Jebelev | 2011-11-04 | 1 | -4/+12 |
| | |||||
* | Merge pull request #3258 from ileitch/3-1-stable | Aaron Patterson | 2011-10-20 | 1 | -0/+16 |
| | | | | Postgres: Do not attempt to deallocate a statement if the connection is no longer active. | ||||
* | reset prepared statement when schema changes imapact statement results. ↵ | Aaron Patterson | 2011-10-18 | 1 | -0/+8 |
| | | | | fixes #3335 | ||||
* | fix to remove warning in test cases | Vishnu Atrai | 2011-10-16 | 1 | -2/+2 |
| | |||||
* | ambiguous first argument; put parentheses or even spaces Warning removed! | Arun Agrawal | 2011-10-10 | 1 | -2/+2 |
| | |||||
* | Remove stray whitespace | Jeremy Kemper | 2011-10-09 | 1 | -4/+1 |
| | |||||
* | Only use LOWER for mysql case insensitive uniqueness check when column has a ↵ | Joseph Palermo | 2011-10-09 | 2 | -0/+73 |
| | | | | case sensitive collation. | ||||
* | Merge pull request #3232 from Juanmcuello/pg_prepared_statements | Aaron Patterson | 2011-10-06 | 1 | -0/+19 |
|\ | | | | | Use the schema_search_path in prepared statements. | ||||
| * | refs #3232. Prepared statements and postgreSQL schemas. | Juan M. Cuello | 2011-10-05 | 1 | -0/+19 |
| | | | | | | | | | | Add tests for prepared statements with multiple schemas in postgreSQL. | ||||
* | | Transactional fixtures enlist all active database connections. | Jeremy Kemper | 2011-10-05 | 1 | -0/+4 |
|/ | | | | You can use multiple databases in your tests without disabling transactional fixtures. | ||||
* | LRU cache in mysql and sqlite are now per-process caches. | Aaron Patterson | 2011-09-07 | 2 | -0/+47 |
| | |||||
* | fixing file name | Aaron Patterson | 2011-09-07 | 1 | -0/+0 |
| | |||||
* | LRU should cache per process in postgresql. fixes #1339 | Aaron Patterson | 2011-09-07 | 1 | -0/+23 |
| | |||||
* | Merge commit 'refs/pull/2909/head' of https://github.com/rails/rails into rawr | Aaron Patterson | 2011-09-07 | 1 | -0/+6 |
| | | | | | | * https://github.com/rails/rails: Postgresql adapter: added current_schema check for table_exists? Postgresql adapter: added current_schema check for table_exists? | ||||
* | Merge pull request #2021 from dasch/more_postgres_utils | Aaron Patterson | 2011-08-29 | 2 | -15/+18 |
|\ | | | | | Make #extract_schema_and_table an instance method in Utils | ||||
| * | Make #extract_schema_and_table an instance method in Utils | Daniel Schierbeck | 2011-07-09 | 2 | -15/+18 |
| | | | | | | | | Also, move the utils test into its own test case. | ||||
* | | Create an AbstractMysqlAdapter to abstract the common code between ↵ | Jon Leighton | 2011-08-29 | 1 | -4/+4 |
| | | | | | | | | MysqlAdapter and Mysql2Adapter. | ||||
* | | Force binary data inserted for a string data type to utf-8 and log an | Aaron Patterson | 2011-08-25 | 1 | -0/+16 |
| | | | | | | | | | | | | | | | | error. Strings tagged as binary will be stored in sqlite3 as blobs. It is an error to insert binary data to a string column, so an error is emitted in the log file. People are highly encouraged to track down the source of the binary strings and make sure that the encoding is set correctly before inserting to the database. | ||||
* | | forgot to add this test case | Aaron Patterson | 2011-07-22 | 1 | -0/+14 |
| | | |||||
* | | move around tests | Aaron Patterson | 2011-07-21 | 1 | -0/+10 |
| | | |||||
* | | bigdecimal should be typecast to a float on sqlite3. fixes #2162 | Aaron Patterson | 2011-07-20 | 1 | -1/+1 |
|/ | |||||
* | Refactor PostgreSQLAdapter a bit | Daniel Schierbeck | 2011-07-08 | 1 | -2/+2 |
| | | | | | Move the private method #extract_schema_and_table into a separate Utils module so that it can be tested without resorting to #send. | ||||
* | Make PostgreSQL adapter view-compatible | Paul Gallagher | 2011-06-19 | 2 | -1/+49 |
| | | | * amongst other things, allows meta_search to run against view-backed models | ||||
* | make extract_schema_and_table a private method | Paul Gallagher | 2011-06-11 | 1 | -7/+7 |
| | |||||
* | remove table quoting in primary_key method | Paul Gallagher | 2011-06-11 | 2 | -5/+47 |
| | | | * add/cleanup tests | ||||
* | apply private method indentation convention | Paul Gallagher | 2011-06-10 | 2 | -3/+3 |
| | | | * tidy test code and fix my typo | ||||
* | Improve PostgreSQL adapter schema-awareness | Paul Gallagher | 2011-06-10 | 2 | -2/+122 |
| | | | | | | | * 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 | ||||
* | Remove unused 'y' variable. | Sebastian Martinez | 2011-06-08 | 1 | -2/+2 |
| | |||||
* | Fix a couple of helper requires that were missed. This was causing the tests ↵ | Jon Leighton | 2011-06-07 | 1 | -1/+1 |
| | | | | to fail to run on 1.8.7. | ||||
* | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 25 | -25/+25 |
| | |||||
* | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 26 | -27/+26 |
| | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | Merge pull request #1385 from smartinez87/drop | Aaron Patterson | 2011-06-01 | 1 | -1/+1 |
|\ | | | | | #drop_table accepts no options now. | ||||
| * | #drop_table accepts no options now. | Sebastian Martinez | 2011-05-28 | 1 | -1/+1 |
| | | |||||
* | | Add missing require to fix the CI | Jon Leighton | 2011-06-01 | 1 | -0/+1 |
| | | |||||
* | | Isolated PostgreSQL test into PostgreSQL folder | Prem Sichanugrist | 2011-05-31 | 1 | -0/+29 |
|/ | |||||
* | use a null byte as a bind parameter substitute as it is not allowed in ↵ | Aaron Patterson | 2011-05-09 | 1 | -0/+50 |
| | | | | normal SQL. fixes #411, #417 | ||||
* | Namespace Fixtures in ActiveRecord | Jason Noble | 2011-05-07 | 2 | -2/+2 |
| | | | [Fixes #439] | ||||
* | added the mysql schema test to mysql2 adapter, and fixed the corresponding ↵ | Josh Kalderimis | 2011-05-03 | 2 | -1/+37 |
| | | | | failures | ||||
* | Added tsvector Datatype Support | Benjamin Fritsch | 2011-04-26 | 1 | -0/+25 |
| | | | Applied Patch from https://rails.lighthouseapp.com/projects/8994/tickets/5577-suport-from-tsvector-data-type-in-postgresql | ||||
* | mysql type cast should return integers when typecasting true / false | Aaron Patterson | 2011-04-14 | 2 | -0/+51 |
| | |||||
* | inserting big decimals as strings works consistently among dbs, so use ↵ | Aaron Patterson | 2011-04-14 | 1 | -1/+1 |
| | | | | string form | ||||
* | adding a type cast method for prepared statements | Aaron Patterson | 2011-04-14 | 1 | -0/+93 |
| | |||||
* | use index based substitution for bind parameters | Aaron Patterson | 2011-04-13 | 3 | -5/+5 |
| | |||||
* | wrap the pg_get_serial_sequence function and reuse it for the default ↵ | Aaron Patterson | 2011-04-11 | 1 | -0/+25 |
| | | | | sequence name | ||||
* | adding exec_insert for postgresql | Aaron Patterson | 2011-04-11 | 2 | -1/+39 |
| | |||||
* | fixing variable name in mysql test | Aaron Patterson | 2011-04-11 | 1 | -1/+1 |
| | |||||
* | adding mysql adapter test case | Aaron Patterson | 2011-04-11 | 1 | -0/+69 |
| |