aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/adapters
Commit message (Collapse)AuthorAgeFilesLines
* LRU cache in mysql and sqlite are now per-process caches.Aaron Patterson2011-09-072-0/+47
|
* fixing file nameAaron Patterson2011-09-071-0/+0
|
* LRU should cache per process in postgresql. fixes #1339Aaron Patterson2011-09-071-0/+23
|
* Merge commit 'refs/pull/2909/head' of https://github.com/rails/rails into rawrAaron Patterson2011-09-071-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_utilsAaron Patterson2011-08-292-15/+18
|\ | | | | Make #extract_schema_and_table an instance method in Utils
| * Make #extract_schema_and_table an instance method in UtilsDaniel Schierbeck2011-07-092-15/+18
| | | | | | | | Also, move the utils test into its own test case.
* | Create an AbstractMysqlAdapter to abstract the common code between ↵Jon Leighton2011-08-291-4/+4
| | | | | | | | MysqlAdapter and Mysql2Adapter.
* | Force binary data inserted for a string data type to utf-8 and log anAaron Patterson2011-08-251-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 caseAaron Patterson2011-07-221-0/+14
| |
* | move around testsAaron Patterson2011-07-211-0/+10
| |
* | bigdecimal should be typecast to a float on sqlite3. fixes #2162Aaron Patterson2011-07-201-1/+1
|/
* Refactor PostgreSQLAdapter a bitDaniel Schierbeck2011-07-081-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-compatiblePaul Gallagher2011-06-192-1/+49
| | | * amongst other things, allows meta_search to run against view-backed models
* make extract_schema_and_table a private methodPaul Gallagher2011-06-111-7/+7
|
* remove table quoting in primary_key methodPaul Gallagher2011-06-112-5/+47
| | | * add/cleanup tests
* apply private method indentation conventionPaul Gallagher2011-06-102-3/+3
| | | * tidy test code and fix my typo
* Improve PostgreSQL adapter schema-awarenessPaul Gallagher2011-06-102-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 Martinez2011-06-081-2/+2
|
* Fix a couple of helper requires that were missed. This was causing the tests ↵Jon Leighton2011-06-071-1/+1
| | | | to fail to run on 1.8.7.
* please use ruby -I lib:test path/to/test.rb, or export RUBY_OPTAaron Patterson2011-06-0625-25/+25
|
* Refactor Active Record test connection setup. Please see the ↵Jon Leighton2011-06-0426-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/dropAaron Patterson2011-06-011-1/+1
|\ | | | | #drop_table accepts no options now.
| * #drop_table accepts no options now.Sebastian Martinez2011-05-281-1/+1
| |
* | Add missing require to fix the CIJon Leighton2011-06-011-0/+1
| |
* | Isolated PostgreSQL test into PostgreSQL folderPrem Sichanugrist2011-05-311-0/+29
|/
* use a null byte as a bind parameter substitute as it is not allowed in ↵Aaron Patterson2011-05-091-0/+50
| | | | normal SQL. fixes #411, #417
* Namespace Fixtures in ActiveRecordJason Noble2011-05-072-2/+2
| | | [Fixes #439]
* added the mysql schema test to mysql2 adapter, and fixed the corresponding ↵Josh Kalderimis2011-05-032-1/+37
| | | | failures
* Added tsvector Datatype SupportBenjamin Fritsch2011-04-261-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 / falseAaron Patterson2011-04-142-0/+51
|
* inserting big decimals as strings works consistently among dbs, so use ↵Aaron Patterson2011-04-141-1/+1
| | | | string form
* adding a type cast method for prepared statementsAaron Patterson2011-04-141-0/+93
|
* use index based substitution for bind parametersAaron Patterson2011-04-133-5/+5
|
* wrap the pg_get_serial_sequence function and reuse it for the default ↵Aaron Patterson2011-04-111-0/+25
| | | | sequence name
* adding exec_insert for postgresqlAaron Patterson2011-04-112-1/+39
|
* fixing variable name in mysql testAaron Patterson2011-04-111-1/+1
|
* adding mysql adapter test caseAaron Patterson2011-04-111-0/+69
|
* adding exec_insert to sqlite3Aaron Patterson2011-04-111-0/+12
|
* moving sqlite_adapter_tests to sqlite3_adapter_test so that the tests are ↵Aaron Patterson2011-04-082-229/+215
| | | | actually run. :bomb:
* escaping binary data encoding when inserting to sqlite3. Thanks Naruse! ↵Aaron Patterson2011-03-211-0/+19
| | | | [#6559 state:resolved]
* schemas set by set_table_name are respected by the mysql adapter. [#5322 ↵Aaron Patterson2011-03-211-0/+36
| | | | state:resolved]
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-153-39/+8
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * bad tests are badAaron Patterson2011-02-141-18/+0
| |
| * removing irrelevant testAaron Patterson2011-02-141-18/+0
| |
| * fixing unused variable warningsAaron Patterson2011-01-171-3/+3
| |
| * define_attr_method must serialize nil correctlyAaron Patterson2010-12-201-0/+5
| |
* | IdentityMap - misc fixesMarcin Raczkowski2010-11-191-1/+1
|/ | | | | | - Added IdentityMap to be included into AR::Base - Fixed bug with Mysql namespace missing when running tests only for sqlite - Added sqlite as default connection
* renaming exec in the mysql adapterAaron Patterson2010-11-051-13/+13
|
* renaming exec in the PG adapterAaron Patterson2010-11-052-11/+11
|
* converted exec to exec_query for sqliteAaron Patterson2010-11-051-12/+12
|