aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
...
* Mind the order of things.Jeremy Kemper2006-06-014-1/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Records and arrays of records are bound as quoted ids.Jeremy Kemper2006-06-011-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4391 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update OpenBase adaterp's maintainer's email address. Closes #5176. [Derrick ↵Marcel Molina2006-05-241-1/+1
| | | | | | Spell] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4366 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Oracle boolean support and tests. Closes #5139. [schoenm@earthlink.net]Marcel Molina2006-05-212-29/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4351 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Preserve MySQL boolean column defaults when changing a column in a ↵Marcel Molina2006-05-142-2/+4
| | | | | | migration. Closes #5015. [pdcawley@bofh.org.uk] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4340 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* PostgreSQL: migrations support :limit with :integer columns by mapping limit ↵Jeremy Kemper2006-05-121-0/+12
| | | | | | < 4 to smallint, > 4 to bigint, and anything else to integer. Closes #2900. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dates and times interpret empty strings as nil rather than 2000-01-01. ↵Jeremy Kemper2006-05-071-1/+2
| | | | | | Closes #4830. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4327 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update FrontBase adapter to check binding version. Closes #4920. ↵Marcel Molina2006-04-281-4/+25
| | | | | | [mlaster@metavillage.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* New Frontbase connections don't start in auto-commit mode. Closes #4922. ↵Marcel Molina2006-04-281-0/+3
| | | | | | [mlaster@metavillage.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only modify the sequence name in the FrontBase adapter if the FrontBase ↵Marcel Molina2006-04-281-5/+3
| | | | | | adapter is actually being used. [Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4296 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't require the frontbase adapter until you need toMarcel Molina2006-04-271-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4293 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for FrontBase (http://www.frontbase.com/) with a new adapter ↵Marcel Molina2006-04-271-0/+837
| | | | | | thanks to the hard work of one Mike Laster. Closes #4093. [mlaster@metavillage.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4291 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix column type check error in changeset [4280]. [Michael A. Schoen]Marcel Molina2006-04-261-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4284 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Oracle support for CLOB inserts. Closes #4748. [schoenm@earthlink.net ↵Marcel Molina2006-04-261-3/+3
| | | | | | sandra.metz@duke.edu] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4280 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Various fixes for sqlserver_adapter (odbc statement finishing, ado schema ↵Marcel Molina2006-04-261-18/+30
| | | | | | dumper, drop index). Closes #4831. [kajism@yahoo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Sybase Adapter type conversion cleanup [dev@metacasa.net]Marcel Molina2006-04-251-72/+65
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4270 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Properly quote index names in migrations (closes #4764) [John Long]Rick Olson2006-04-204-16/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4239 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Multiple fixes and optimizations in PostgreSQL adapter, allowing ↵Tobias Lütke2006-04-041-7/+25
| | | | | | ruby-postgres gem to work properly. Closes #4461 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Get the green light for Oracle AR unit tests (closes #4573) [Michael Schoen]David Heinemeier Hansson2006-04-041-35/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4152 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed broken OCIAdapter (closes #4457) [schoenm@earthlink.net]David Heinemeier Hansson2006-03-301-8/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4100 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentationDavid Heinemeier Hansson2006-03-282-8/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support the use of public synonyms with the Oracle adapter; required ↵David Heinemeier Hansson2006-03-261-0/+1
| | | | | | ruby-oci8 v0.1.14 (closes #4390) [schoenm@earthlink.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only string_to_binary if the column respondsDavid Heinemeier Hansson2006-03-264-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change periods (.) in table aliases to _'s. Closes #4251 ↵Rick Olson2006-03-261-1/+1
| | | | | | [jeff@ministrycentered.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Do it in styleDavid Heinemeier Hansson2006-03-251-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4032 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed db_schema_import when binary types are present (closes #3101) [DHH]David Heinemeier Hansson2006-03-251-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4031 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that MySQL enums should always be returned as strings (closes #3501) [DHH]David Heinemeier Hansson2006-03-251-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4028 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed DB2 adapter so nullable columns will be determines correctly now and ↵David Heinemeier Hansson2006-03-221-2/+3
| | | | | | quotes from column default values will be removed (closes #4350) [contact@maik-schmidt.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that schema changes while the database was open would break any ↵David Heinemeier Hansson2006-03-201-11/+15
| | | | | | connections to a SQLite database (now we reconnect if that error is throw) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3998 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that schema changes while the database was open would break any ↵David Heinemeier Hansson2006-03-201-2/+14
| | | | | | connections to a SQLite database (now we reconnect if that error is throw) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add support for COUNT(DISTINCT id) queries in sqlite2 (closes #4300) [Rick ↵Rick Olson2006-03-191-2/+21
| | | | | | Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3979 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SQL Server adapter gets some love (closes #4298) [rtomayko@gmail.com]David Heinemeier Hansson2006-03-181-13/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3949 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added OpenBase database adapter that builds on top of the ↵David Heinemeier Hansson2006-03-181-0/+349
| | | | | | http://www.spice-of-life.net/ruby-openbase/ driver. All functionality except LIMIT/OFFSET is supported (closes #3528) [derrickspell@cdmplus.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rework table aliasing to account for truncated table aliases. Add smarter ↵Rick Olson2006-03-181-6/+2
| | | | | | table aliasing when doing eager loading of STI associations. This allows you to use the association name in the order/where clause. [Jonathan Viney / Rick Olson] closes #4108 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add AbstractAdapter#table_alias_for to create table aliases according to the ↵Rick Olson2006-03-185-0/+28
| | | | | | rules of the current adapter. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3916 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Provide access to the underlying database connection with ↵Michael Koziarski2006-03-181-0/+7
| | | | | | Adapter#raw_connection, allows the use of db-specific methods such as postgresql's lo_* . Closes #2090 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove broken attempts at handling columns with a a default of 'now()' in ↵Michael Koziarski2006-03-181-3/+0
| | | | | | the postgresql adapter. Closes #2257 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added connection#current_database that'll return of the current database ↵David Heinemeier Hansson2006-03-182-0/+7
| | | | | | (only works in MySQL, SQL Server, and Oracle so far -- please help implement for the rest of the adapters) (closes #3663) [Tom ward] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added migrations support to the Sybase adapter (closes #4293) [John R. Sheets]David Heinemeier Hansson2006-03-181-18/+94
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make all tinyint(1) variants act like boolean in mysql (tinyint(1) unsigned, ↵Jamis Buck2006-03-171-1/+1
| | | | | | etc.) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Oracle adapter gets some love #4230 [schoenm@earthlink.net]David Heinemeier Hansson2006-03-161-4/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3889 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop the MySQL adapter crashing when views are present. (closes #3782) ↵David Heinemeier Hansson2006-03-161-1/+16
| | | | | | [Jonathan Viney] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dynamically set allow_concurrency. Closes #4044.Jeremy Kemper2006-03-131-19/+47
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix unreplaced class varJeremy Kemper2006-03-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3747 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert allow_concurrency change for better testing. Retrieve_connection in ↵Jeremy Kemper2006-03-021-1/+2
| | | | | | two steps to avoid side-effect bug (yuk). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3745 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Catch requirement of Sybase adapter, if we cant, dont have itDavid Heinemeier Hansson2006-03-021-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3737 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont require sybase unless you try to connectDavid Heinemeier Hansson2006-03-021-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3736 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Sybase database adapter that relies on the Sybase Open Client bindings ↵David Heinemeier Hansson2006-03-021-0/+599
| | | | | | (see http://raa.ruby-lang.org/project/sybase-ctlib) (closes #3765) [John Sheets] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* (duh :)Jeremy Kemper2006-03-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Typo in stale thread removal.Jeremy Kemper2006-03-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de