aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
* Refactor ActiveRecord::ConnectionAdapters::Column.new_time: leverage ↵Geoff Buesing2008-02-161-6/+2
| | | | | | DateTime failover behavior of Time#time_with_datetime_fallback git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8881 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Optimisation for BigDecimal conversion code. Closes #11110 [adymo]Michael Koziarski2008-02-141-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: memoize column and table name quoting to reduce garbageJeremy Kemper2008-02-031-7/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8794 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: omit text/blob defaults from the schema instead of using an empty ↵Jeremy Kemper2008-01-301-1/+1
| | | | | | string. Closes #10963. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8757 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove dead code. Closes #10698 [garru]Jeremy Kemper2008-01-191-5/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8670 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove table quoting; only pull last_insert_id if there's a primary key.Jeremy Kemper2008-01-191-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct fix for [8647], Closes #6868. [isak]Michael Koziarski2008-01-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8650 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't ignore :precision and :scale when adding columns on postgresql. Closes ↵Michael Koziarski2008-01-161-2/+3
| | | | | | #6868 [w.piekutowski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix issue where Table#references doesn't pass a :null option to a *_type ↵Rick Olson2008-01-111-3/+1
| | | | | | attribute for polymorphic associations. Closes #10753 [railsjitsu] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More thoroughly quote table names. Exposes some issues with sqlite2 adapter. ↵Jeremy Kemper2008-01-054-14/+24
| | | | | | Closes #10698. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: don't use obsolete ParseDateJeremy Kemper2008-01-031-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8540 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: fix warnings, shadowed block vars, and unitialized instance ↵Jeremy Kemper2007-12-223-3/+4
| | | | | | vars git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* SQLite: fix rename_ and remove_column for columns with unique indexes. ↵Jeremy Kemper2007-12-201-6/+13
| | | | | | Closes #10576. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8453 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: check column type more carefullyJeremy Kemper2007-12-192-11/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reveal that the type option in migrations can be any supported column type ↵Marcel Molina2007-12-051-1/+6
| | | | | | for your database but also include caveat about agnosticism. Closes #7531 [adamwiggins, mikong] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Document the timestamps schema definition method. Closes #9000 [mikong]Marcel Molina2007-12-051-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8285 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Handle 8.1 default formatting. Closes #10333 [Tim Pope]Jeremy Kemper2007-12-021-0/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Honor Ruby's default calendar reform setting when creating DateTime objects ↵Geoff Buesing2007-11-241-2/+1
| | | | | | via ActiveRecord's Time -> DateTime overflow, Time#time_with_datetime_fallback, Time#to_datetime, Date#to_datetime and String#to_datetime. Closes #10201 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* PostgreSQL: correct binary escaping. References #8049, closes #10176 ↵Jeremy Kemper2007-11-221-2/+2
| | | | | | [jbasdf, tmacedo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use debug, not info as log_info will discard the information if info is used.Michael Koziarski2007-11-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8162 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Smattering of grammatical fixes to documentation. Closes #10083 [BobSilva]Marcel Molina2007-11-086-20/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Standardize on using hyphens rather than colons to separate option names ↵Marcel Molina2007-11-061-5/+5
| | | | | | from their explanation in documentation. Replace + with tt tags. Closes #8732. [ryanb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use the safe conversion code introduced in earlier commit. References ↵Michael Koziarski2007-11-051-1/+1
| | | | | | #10068 [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8077 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Foxy fixtures. Adapter#disable_referential_integrity. Closes #9981.Jeremy Kemper2007-10-263-0/+27
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8036 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove superfluous code and quote table name. References #9971 [jkit, nzkoz]Michael Koziarski2007-10-251-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8015 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make clear_reloadable_connections! take account of @@allow_concurrency. ↵Michael Koziarski2007-10-251-4/+17
| | | | | | Closes #7579 [wilson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make sure that the Schema Dumper supports non-standard primary keys with ↵Michael Koziarski2007-10-251-0/+10
| | | | | | MySQL. Closes #9971 [RubyRedRick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure that mysql quotes table names with database names correctly. Closes ↵Rick Olson2007-10-201-1/+1
| | | | | | #9911 [crayz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add t.belongs_to and t.references to sexy migrations [arthurgeek]Michael Koziarski2007-10-191-0/+30
| | | | | | | | Test harness for Sexy Migrations. [Koz] Closes #9775 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Quote table names. Defaults to column quoting. Closes #4593.Jeremy Kemper2007-10-165-31/+49
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix join table docs error in schema_statements. Closes #9880 [lawrence]Jeremy Kemper2007-10-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7931 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Factor out checks for duplicable objects. Closes #9333.Jeremy Kemper2007-10-151-5/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7908 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* PostgreSQL: support multiline default values. Closes #7533.Jeremy Kemper2007-10-081-14/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dr Math meets Captain Obvious.Jeremy Kemper2007-10-081-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7798 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: fix change_column on not-null columns that don't accept dfeault ↵Jeremy Kemper2007-10-081-2/+2
| | | | | | values of ''. Closes #6663. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use fast date/time parsing by default. Closes #9811.Jeremy Kemper2007-10-072-34/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7780 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reinstate failsafe date/time parsing rescues. Head off some obvious failures ↵Jeremy Kemper2007-10-072-22/+29
| | | | | | like year == 0 or nil. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7771 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: speedup date/time parsing.Jeremy Kemper2007-10-072-58/+94
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7769 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow change_column to set NOT NULL in the PostgreSQL adaptor. Closes #3904 ↵Michael Koziarski2007-10-071-17/+12
| | | | | | [tarmo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Send the correct INSERT statement when dealing with objects with only ↵Michael Koziarski2007-10-062-0/+7
| | | | | | primary keys. Closes #9523 [tarmo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7753 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Try loading activerecord-<adaptername>-adapter gem before trying a plain ↵Jeremy Kemper2007-10-041-8/+3
| | | | | | require so you can use custom gems for the bundled adapters. Also stops gems from requiring an adapter from an old Active Record gem. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't implicitly assign instance variables by using them as block argumentsJeremy Kemper2007-09-301-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove DB2 adapter since IBM chooses to maintain their own adapter instead.Jeremy Kemper2007-09-291-242/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract Oracle, SQLServer, and Sybase adapters into gems.Jeremy Kemper2007-09-293-2007/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7689 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat for instance method check in Mysql adapter.Jeremy Kemper2007-09-291-1/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7688 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-286-9/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* MySQL: change_column raises if the table or column doesn't exist.Jeremy Kemper2007-09-281-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed rename_column for SQLite when using symbols for the column names ↵David Heinemeier Hansson2007-09-221-2/+3
| | | | | | (closes #8616) [drodriguez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stress that you should really install the C-based MySQL library when running ↵David Heinemeier Hansson2007-09-201-0/+5
| | | | | | on the pure Ruby one (closes #9507) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7521 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't worry about retrieving the last inserted id. [tarmo_t]Jeremy Kemper2007-09-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de