aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/reflection.rb
diff options
context:
space:
mode:
authorYasuo Honda <yasuo.honda@gmail.com>2018-05-31 03:35:07 +0000
committerYasuo Honda <yasuo.honda@gmail.com>2018-06-01 03:47:17 +0000
commit4d65293622d4bb5510c5a8d2537910f8ff8b6cc8 (patch)
treea62baf86e4300ab1d36bc0dbb33658804a706464 /activerecord/lib/active_record/reflection.rb
parent0d7f13a622259ccafe3822d4e4eb7177107974ab (diff)
downloadrails-4d65293622d4bb5510c5a8d2537910f8ff8b6cc8.tar.gz
rails-4d65293622d4bb5510c5a8d2537910f8ff8b6cc8.tar.bz2
rails-4d65293622d4bb5510c5a8d2537910f8ff8b6cc8.zip
CI against MariaDB 10.3
- MariaDB 10.3.7 is the first GA release https://mariadb.com/kb/en/library/mariadb-1037-release-notes/ - MariaDB 10.3 translates `LENGTH()` to `OCTET_LENGTH()` function https://mariadb.com/kb/en/library/sql_modeoracle-from-mariadb-103/ > MariaDB translates LENGTH() to OCTET_LENGTH() - MySQL does NOT translate `LENGTH()` to `OCTET_LENGTH()` However, it translates `OCTET_LENGTH()` to `LENGTH()` Here are generated schema dumps of this test to show the differences between MySQL and MariaDB: * MySQL 8.0 (Server version: 8.0.11 MySQL Community Server - GPL) ```ruby create_table \"virtual_columns\", options: \"ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci\", force: :cascade do |t| t.string \"name\" t.virtual \"upper_name\", type: :string, as: \"upper(`name`)\" t.virtual \"name_length\", type: :integer, as: \"length(`name`)\", stored: true t.virtual \"name_octet_length\", type: :integer, as: \"length(`name`)\", stored: true end ``` * Maria DB 10.3 (Server version: 10.3.7-MariaDB-1:10.3.7+maria~bionic-log mariadb.org binary distribution) ```ruby create_table \"virtual_columns\", options: \"ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci\", force: :cascade do |t| t.string \"name\" t.virtual \"upper_name\", type: :string, as: \"ucase(`name`)\" t.virtual \"name_length\", type: :integer, as: \"octet_length(`name`)\", stored: true t.virtual \"name_octet_length\", type: :integer, as: \"octet_length(`name`)\", stored: true end ```
Diffstat (limited to 'activerecord/lib/active_record/reflection.rb')
0 files changed, 0 insertions, 0 deletions