aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/reserved_words
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-16 05:06:33 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-16 05:06:33 +0000
commit9b6207c3d0596599078b4171caa71b6e7c49ebc9 (patch)
treeee21d9d91d2081f6634e0ebac2c67818c2a846aa /activerecord/test/fixtures/reserved_words
parente7ed4c93542f323aa135b17d4e31d13c4a59febb (diff)
downloadrails-9b6207c3d0596599078b4171caa71b6e7c49ebc9.tar.gz
rails-9b6207c3d0596599078b4171caa71b6e7c49ebc9.tar.bz2
rails-9b6207c3d0596599078b4171caa71b6e7c49ebc9.zip
Quote table names. Defaults to column quoting. Closes #4593.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7932 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/reserved_words')
-rw-r--r--activerecord/test/fixtures/reserved_words/distinct.yml5
-rw-r--r--activerecord/test/fixtures/reserved_words/distincts_selects.yml11
-rw-r--r--activerecord/test/fixtures/reserved_words/group.yml14
-rw-r--r--activerecord/test/fixtures/reserved_words/select.yml8
-rw-r--r--activerecord/test/fixtures/reserved_words/values.yml7
5 files changed, 45 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/reserved_words/distinct.yml b/activerecord/test/fixtures/reserved_words/distinct.yml
new file mode 100644
index 0000000000..0988f89ca6
--- /dev/null
+++ b/activerecord/test/fixtures/reserved_words/distinct.yml
@@ -0,0 +1,5 @@
+distinct1:
+ id: 1
+
+distinct2:
+ id: 2
diff --git a/activerecord/test/fixtures/reserved_words/distincts_selects.yml b/activerecord/test/fixtures/reserved_words/distincts_selects.yml
new file mode 100644
index 0000000000..90e8c95fef
--- /dev/null
+++ b/activerecord/test/fixtures/reserved_words/distincts_selects.yml
@@ -0,0 +1,11 @@
+distincts_selects1:
+ distinct_id: 1
+ select_id: 1
+
+distincts_selects2:
+ distinct_id: 1
+ select_id: 2
+
+distincts_selects3:
+ distinct_id: 2
+ select_id: 3
diff --git a/activerecord/test/fixtures/reserved_words/group.yml b/activerecord/test/fixtures/reserved_words/group.yml
new file mode 100644
index 0000000000..39abea7abb
--- /dev/null
+++ b/activerecord/test/fixtures/reserved_words/group.yml
@@ -0,0 +1,14 @@
+group1:
+ id: 1
+ select_id: 1
+ order: x
+
+group2:
+ id: 2
+ select_id: 2
+ order: y
+
+group3:
+ id: 3
+ select_id: 2
+ order: z
diff --git a/activerecord/test/fixtures/reserved_words/select.yml b/activerecord/test/fixtures/reserved_words/select.yml
new file mode 100644
index 0000000000..a4c35a2b63
--- /dev/null
+++ b/activerecord/test/fixtures/reserved_words/select.yml
@@ -0,0 +1,8 @@
+select1:
+ id: 1
+
+select2:
+ id: 2
+
+select3:
+ id: 3
diff --git a/activerecord/test/fixtures/reserved_words/values.yml b/activerecord/test/fixtures/reserved_words/values.yml
new file mode 100644
index 0000000000..7d109609ab
--- /dev/null
+++ b/activerecord/test/fixtures/reserved_words/values.yml
@@ -0,0 +1,7 @@
+values1:
+ id: 1
+ group_id: 2
+
+values2:
+ id: 2
+ group_id: 1