composite_primary_keys 6.0.1 → 6.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,7 @@ class TestCreate < ActiveSupport::TestCase
30
30
  testing_with do
31
31
  assert new_obj = @klass.create(@klass_info[:create])
32
32
  assert !new_obj.new_record?
33
+ assert new_obj.id
33
34
  end
34
35
  end
35
36
 
@@ -48,7 +49,7 @@ class TestCreate < ActiveSupport::TestCase
48
49
  end
49
50
 
50
51
  def test_create_on_association
51
- suburb = Suburb.find(:first)
52
+ suburb = Suburb.first
52
53
  suburb.streets.create(:name => "my street")
53
54
  street = Street.find_by_name('my street')
54
55
  assert_equal(suburb.city_id, street.city_id)
@@ -56,15 +57,15 @@ class TestCreate < ActiveSupport::TestCase
56
57
  end
57
58
 
58
59
  def test_create_on_association_when_belongs_to_is_single_key
59
- rt = ReferenceType.find(:first)
60
+ rt = ReferenceType.first
60
61
  rt.reference_codes.create(:reference_code => 4321, :code_label => 'foo', :abbreviation => 'bar')
61
62
  rc = ReferenceCode.find_by_reference_code(4321)
62
63
  assert_equal(rc.reference_type_id, rt.reference_type_id)
63
64
  end
64
65
 
65
66
  def test_new_habtm
66
- restaurant = Restaurant.new(:franchise_id => 22,
67
- :store_id => 23,
67
+ restaurant = Restaurant.new(:franchise_id => 101,
68
+ :store_id => 201,
68
69
  :name => "My Store")
69
70
 
70
71
  restaurant.suburbs << Suburb.new(:city_id => 24,
@@ -73,11 +74,9 @@ class TestCreate < ActiveSupport::TestCase
73
74
 
74
75
  restaurant.save!
75
76
 
76
- restaurant.reload
77
-
78
77
  # Test restaurant
79
- assert_equal(22, restaurant.franchise_id)
80
- assert_equal(23, restaurant.store_id)
78
+ assert_equal(101, restaurant.franchise_id)
79
+ assert_equal(201, restaurant.store_id)
81
80
  assert_equal("My Store", restaurant.name)
82
81
  assert_equal(1, restaurant.suburbs.length)
83
82
 
@@ -89,8 +88,8 @@ class TestCreate < ActiveSupport::TestCase
89
88
  end
90
89
 
91
90
  def test_create_habtm
92
- restaurant = Restaurant.create(:franchise_id => 22,
93
- :store_id => 23,
91
+ restaurant = Restaurant.create(:franchise_id => 100,
92
+ :store_id => 200,
94
93
  :name => "My Store")
95
94
 
96
95
  restaurant.suburbs.create(:city_id => 24,
@@ -98,10 +97,11 @@ class TestCreate < ActiveSupport::TestCase
98
97
  :name => "My Suburb")
99
98
 
100
99
  # Test restaurant
101
- assert_equal(22, restaurant.franchise_id)
102
- assert_equal(23, restaurant.store_id)
100
+ assert_equal(100, restaurant.franchise_id)
101
+ assert_equal(200, restaurant.store_id)
103
102
  assert_equal("My Store", restaurant.name)
104
- assert_equal(1, restaurant.suburbs.length)
103
+
104
+ assert_equal(1, restaurant.suburbs(true).length)
105
105
 
106
106
  # Test suburbs
107
107
  suburb = restaurant.suburbs[0]
@@ -109,4 +109,4 @@ class TestCreate < ActiveSupport::TestCase
109
109
  assert_equal(25, suburb.suburb_id)
110
110
  assert_equal("My Suburb", suburb.name)
111
111
  end
112
- end
112
+ end
@@ -5,13 +5,13 @@ class TestFind < ActiveSupport::TestCase
5
5
  fixtures :capitols, :departments, :reference_types, :reference_codes, :suburbs
6
6
 
7
7
  def test_find_first
8
- ref_code = ReferenceCode.find(:first, :order => 'reference_type_id, reference_code')
8
+ ref_code = ReferenceCode.order('reference_type_id, reference_code').first
9
9
  assert_kind_of(ReferenceCode, ref_code)
10
10
  assert_equal([1,1], ref_code.id)
11
11
  end
12
12
 
13
13
  def test_find_last
14
- ref_code = ReferenceCode.find(:last, :order => 'reference_type_id, reference_code')
14
+ ref_code = ReferenceCode.order('reference_type_id, reference_code').last
15
15
  assert_kind_of(ReferenceCode, ref_code)
16
16
  assert_equal([2,2], ref_code.id)
17
17
  end
@@ -82,13 +82,13 @@ class TestFind < ActiveSupport::TestCase
82
82
  end
83
83
 
84
84
  def test_find_last_suburb
85
- suburb = Suburb.find(:last)
85
+ suburb = Suburb.last
86
86
  assert_equal([2,1], suburb.id)
87
87
  end
88
88
 
89
89
  def test_find_last_suburb_with_order
90
90
  # Rails actually changes city_id DESC to city_id ASC
91
- suburb = Suburb.find(:last, :order => 'suburbs.city_id DESC')
91
+ suburb = Suburb.order('suburbs.city_id DESC').last
92
92
  assert_equal([1,1], suburb.id)
93
93
  end
94
94
 
@@ -7,7 +7,7 @@ class TestHabtm < ActiveSupport::TestCase
7
7
  @restaurant = Restaurant.find([1,1])
8
8
  assert_equal 2, @restaurant.suburbs.size
9
9
 
10
- @restaurant = Restaurant.find([1,1], :include => :suburbs)
10
+ @restaurant = Restaurant.includes(:suburbs).find([1,1])
11
11
  assert_equal 2, @restaurant.suburbs.size
12
12
  end
13
13
 
@@ -41,7 +41,7 @@ class TestIds < ActiveSupport::TestCase
41
41
  def test_ids_to_s
42
42
  testing_with do
43
43
  order = @klass.primary_key.is_a?(String) ? @klass.primary_key : @klass.primary_key.join(',')
44
- to_test = @klass.find(:all, :order => order)[0..1].map(&:id)
44
+ to_test = @klass.order(order)[0..1].map(&:id)
45
45
  assert_equal '(1,1),(1,2)', @klass.ids_to_s(to_test) if @key_test == :dual
46
46
  assert_equal '1,1;1,2', @klass.ids_to_s(to_test, ',', ';', '', '') if @key_test == :dual
47
47
  end
@@ -64,9 +64,8 @@ class TestUpdate < ActiveSupport::TestCase
64
64
  assert_nothing_raised do
65
65
  refrence_code = ReferenceCode.create
66
66
  primary_key = refrence_code.class.primary_key
67
- ReferenceCode.update_all(
68
- {description: 'random value'},
69
- {primary_key => refrence_code[primary_key]})
67
+ ReferenceCode.where(primary_key => refrence_code[primary_key]).
68
+ update_all(description: 'random value')
70
69
  end
71
70
  end
72
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: composite_primary_keys
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1
4
+ version: 6.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-29 00:00:00.000000000 Z
12
+ date: 2014-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ! '>='
19
19
  - !ruby/object:Gem::Version
20
20
  version: 4.0.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ! '>='
26
26
  - !ruby/object:Gem::Version
27
27
  version: 4.0.0
28
28
  description: Composite key support for ActiveRecord
@@ -31,20 +31,21 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - Rakefile
35
34
  - History.rdoc
36
35
  - README.rdoc
37
36
  - README_DB2.rdoc
37
+ - Rakefile
38
38
  - init.rb
39
39
  - install.rb
40
- - loader.rb
40
+ - lib/composite_primary_keys.rb
41
+ - lib/composite_primary_keys/active_record_overides.rb
41
42
  - lib/composite_primary_keys/associations/association.rb
42
43
  - lib/composite_primary_keys/associations/association_scope.rb
43
44
  - lib/composite_primary_keys/associations/has_and_belongs_to_many_association.rb
44
45
  - lib/composite_primary_keys/associations/has_many_association.rb
46
+ - lib/composite_primary_keys/associations/join_dependency.rb
45
47
  - lib/composite_primary_keys/associations/join_dependency/join_association.rb
46
48
  - lib/composite_primary_keys/associations/join_dependency/join_part.rb
47
- - lib/composite_primary_keys/associations/join_dependency.rb
48
49
  - lib/composite_primary_keys/associations/preloader/association.rb
49
50
  - lib/composite_primary_keys/associations/preloader/belongs_to.rb
50
51
  - lib/composite_primary_keys/associations/preloader/has_and_belongs_to_many.rb
@@ -62,15 +63,15 @@ files:
62
63
  - lib/composite_primary_keys/fixtures.rb
63
64
  - lib/composite_primary_keys/nested_attributes.rb
64
65
  - lib/composite_primary_keys/persistence.rb
66
+ - lib/composite_primary_keys/relation.rb
65
67
  - lib/composite_primary_keys/relation/batches.rb
66
68
  - lib/composite_primary_keys/relation/calculations.rb
67
69
  - lib/composite_primary_keys/relation/finder_methods.rb
68
70
  - lib/composite_primary_keys/relation/query_methods.rb
69
- - lib/composite_primary_keys/relation.rb
70
71
  - lib/composite_primary_keys/sanitization.rb
71
72
  - lib/composite_primary_keys/validations/uniqueness.rb
72
73
  - lib/composite_primary_keys/version.rb
73
- - lib/composite_primary_keys.rb
74
+ - loader.rb
74
75
  - scripts/console.rb
75
76
  - scripts/txt2html
76
77
  - scripts/txt2js
@@ -80,10 +81,10 @@ files:
80
81
  - tasks/databases/sqlite3.rake
81
82
  - tasks/databases/sqlserver.rake
82
83
  - tasks/website.rake
84
+ - test/README_tests.rdoc
83
85
  - test/abstract_unit.rb
84
86
  - test/connections/connection_spec.rb
85
87
  - test/connections/databases.example.yml
86
- - test/connections/databases.yml
87
88
  - test/connections/native_ibm_db/connection.rb
88
89
  - test/connections/native_mysql/connection.rb
89
90
  - test/connections/native_oracle/connection.rb
@@ -92,7 +93,6 @@ files:
92
93
  - test/connections/native_sqlite3/connection.rb
93
94
  - test/connections/native_sqlserver/connection.rb
94
95
  - test/db_test.rb
95
- - test/debug.log
96
96
  - test/fixtures/article.rb
97
97
  - test/fixtures/articles.yml
98
98
  - test/fixtures/capitol.rb
@@ -119,16 +119,18 @@ files:
119
119
  - test/fixtures/hack.rb
120
120
  - test/fixtures/hacks.yml
121
121
  - test/fixtures/membership.rb
122
- - test/fixtures/memberships.yml
123
122
  - test/fixtures/membership_status.rb
124
123
  - test/fixtures/membership_statuses.yml
124
+ - test/fixtures/memberships.yml
125
125
  - test/fixtures/product.rb
126
- - test/fixtures/products.yml
127
126
  - test/fixtures/product_tariff.rb
128
127
  - test/fixtures/product_tariffs.yml
128
+ - test/fixtures/products.yml
129
129
  - test/fixtures/reading.rb
130
130
  - test/fixtures/readings.yml
131
131
  - test/fixtures/reference_code.rb
132
+ - test/fixtures/reference_code_using_composite_key_alias.rb
133
+ - test/fixtures/reference_code_using_simple_key_alias.rb
132
134
  - test/fixtures/reference_codes.yml
133
135
  - test/fixtures/reference_type.rb
134
136
  - test/fixtures/reference_types.yml
@@ -136,13 +138,13 @@ files:
136
138
  - test/fixtures/restaurants.yml
137
139
  - test/fixtures/restaurants_suburbs.yml
138
140
  - test/fixtures/room.rb
139
- - test/fixtures/rooms.yml
140
141
  - test/fixtures/room_assignment.rb
141
142
  - test/fixtures/room_assignments.yml
142
143
  - test/fixtures/room_attribute.rb
143
- - test/fixtures/room_attributes.yml
144
144
  - test/fixtures/room_attribute_assignment.rb
145
145
  - test/fixtures/room_attribute_assignments.yml
146
+ - test/fixtures/room_attributes.yml
147
+ - test/fixtures/rooms.yml
146
148
  - test/fixtures/seat.rb
147
149
  - test/fixtures/seats.yml
148
150
  - test/fixtures/street.rb
@@ -157,11 +159,11 @@ files:
157
159
  - test/fixtures/users.yml
158
160
  - test/plugins/pagination.rb
159
161
  - test/plugins/pagination_helper.rb
160
- - test/README_tests.rdoc
161
162
  - test/setup.rb
163
+ - test/test_aliases.rb
162
164
  - test/test_associations.rb
163
- - test/test_attributes.rb
164
165
  - test/test_attribute_methods.rb
166
+ - test/test_attributes.rb
165
167
  - test/test_calculations.rb
166
168
  - test/test_composite_arrays.rb
167
169
  - test/test_counter_cache.rb
@@ -194,29 +196,29 @@ require_paths:
194
196
  - lib
195
197
  required_ruby_version: !ruby/object:Gem::Requirement
196
198
  requirements:
197
- - - '>='
199
+ - - ! '>='
198
200
  - !ruby/object:Gem::Version
199
201
  version: 1.9.3
200
202
  required_rubygems_version: !ruby/object:Gem::Requirement
201
203
  requirements:
202
- - - '>='
204
+ - - ! '>='
203
205
  - !ruby/object:Gem::Version
204
206
  version: '0'
205
207
  requirements: []
206
208
  rubyforge_project: compositekeys
207
- rubygems_version: 2.1.11
209
+ rubygems_version: 2.2.2
208
210
  signing_key:
209
211
  specification_version: 4
210
212
  summary: Composite key support for ActiveRecord
211
213
  test_files:
212
214
  - test/abstract_unit.rb
213
215
  - test/db_test.rb
214
- - test/debug.log
215
216
  - test/README_tests.rdoc
216
217
  - test/setup.rb
218
+ - test/test_aliases.rb
217
219
  - test/test_associations.rb
218
- - test/test_attributes.rb
219
220
  - test/test_attribute_methods.rb
221
+ - test/test_attributes.rb
220
222
  - test/test_calculations.rb
221
223
  - test/test_composite_arrays.rb
222
224
  - test/test_counter_cache.rb
@@ -1,18 +0,0 @@
1
- # To run tests:
2
- # 1. Copy this file to test/connections/databases.yml.
3
- # 2. Update to match the databases you want to test against.
4
-
5
- mysql:
6
- adapter: mysql2
7
- username: root
8
- database: composite_primary_keys_unittest
9
-
10
- sqlite3:
11
- adapter: sqlite3
12
- database: db/composite_primary_keys_unittest.sqlite
13
-
14
- postgresql:
15
- adapter: postgresql
16
- database: composite_primary_keys_unittest
17
- username: postgres
18
- host: localhost
@@ -1,589 +0,0 @@
1
- # Logfile created on Sat Nov 20 00:07:06 -0700 2010 by logger.rb/22285
2
- SQL (0.0ms) SHOW client_min_messages
3
- SQL (0.0ms) SET client_min_messages TO 'panic'
4
- SQL (0.0ms) SET standard_conforming_strings = on
5
- SQL (1.0ms) SET client_min_messages TO 'notice'
6
- SQL (0.0ms) SHOW TIME ZONE
7
- SQL (0.0ms) SHOW client_min_messages
8
- SQL (0.0ms) SET client_min_messages TO 'panic'
9
- SQL (0.0ms) SET standard_conforming_strings = on
10
- SQL (0.0ms) SET client_min_messages TO 'notice'
11
- SQL (0.0ms) SHOW TIME ZONE
12
- PGError: ERROR: operator does not exist: character varying = integer
13
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
14
- ^
15
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
16
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
17
- SQL (1.0ms) SHOW client_min_messages
18
- SQL (1.0ms) SET client_min_messages TO 'panic'
19
- SQL (0.0ms) SET standard_conforming_strings = on
20
- SQL (0.0ms) SET client_min_messages TO 'notice'
21
- SQL (1.0ms) SHOW TIME ZONE
22
- PGError: ERROR: operator does not exist: character varying = integer
23
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
24
- ^
25
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
26
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
27
- SQL (1.0ms) SHOW client_min_messages
28
- SQL (1.0ms) SET client_min_messages TO 'panic'
29
- SQL (0.0ms) SET standard_conforming_strings = on
30
- SQL (1.0ms) SET client_min_messages TO 'notice'
31
- SQL (0.0ms) SHOW TIME ZONE
32
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
33
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
34
- ^
35
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
36
- PGError: ERROR: operator does not exist: character varying = integer
37
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
38
- ^
39
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
40
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
41
- SQL (0.0ms) SHOW client_min_messages
42
- SQL (0.0ms) SET client_min_messages TO 'panic'
43
- SQL (1.0ms) SET standard_conforming_strings = on
44
- SQL (0.0ms) SET client_min_messages TO 'notice'
45
- SQL (0.0ms) SHOW TIME ZONE
46
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
47
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
48
- ^
49
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
50
- SQL (0.0ms) SHOW client_min_messages
51
- SQL (0.0ms) SET client_min_messages TO 'panic'
52
- SQL (0.0ms) SET standard_conforming_strings = on
53
- SQL (0.0ms) SET client_min_messages TO 'notice'
54
- SQL (0.0ms) SHOW TIME ZONE
55
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
56
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
57
- ^
58
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
59
- SQL (1.0ms) SHOW client_min_messages
60
- SQL (1.0ms) SET client_min_messages TO 'panic'
61
- SQL (0.0ms) SET standard_conforming_strings = on
62
- SQL (0.0ms) SET client_min_messages TO 'notice'
63
- SQL (1.0ms) SHOW TIME ZONE
64
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
65
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
66
- ^
67
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
68
- SQL (0.0ms) SHOW client_min_messages
69
- SQL (0.0ms) SET client_min_messages TO 'panic'
70
- SQL (0.0ms) SET standard_conforming_strings = on
71
- SQL (0.0ms) SET client_min_messages TO 'notice'
72
- SQL (0.0ms) SHOW TIME ZONE
73
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
74
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
75
- ^
76
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
77
- SQL (0.0ms) SHOW client_min_messages
78
- SQL (0.0ms) SET client_min_messages TO 'panic'
79
- SQL (1.0ms) SET standard_conforming_strings = on
80
- SQL (0.0ms) SET client_min_messages TO 'notice'
81
- SQL (0.0ms) SHOW TIME ZONE
82
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
83
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
84
- ^
85
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
86
- SQL (0.0ms) SHOW client_min_messages
87
- SQL (0.0ms) SET client_min_messages TO 'panic'
88
- SQL (0.0ms) SET standard_conforming_strings = on
89
- SQL (0.0ms) SET client_min_messages TO 'notice'
90
- SQL (1.0ms) SHOW TIME ZONE
91
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
92
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
93
- ^
94
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
95
- SQL (1.0ms) SHOW client_min_messages
96
- SQL (0.0ms) SET client_min_messages TO 'panic'
97
- SQL (0.0ms) SET standard_conforming_strings = on
98
- SQL (1.0ms) SET client_min_messages TO 'notice'
99
- SQL (0.0ms) SHOW TIME ZONE
100
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
101
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
102
- ^
103
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
104
- SQL (0.0ms) SHOW client_min_messages
105
- SQL (0.0ms) SET client_min_messages TO 'panic'
106
- SQL (0.0ms) SET standard_conforming_strings = on
107
- SQL (0.0ms) SET client_min_messages TO 'notice'
108
- SQL (0.0ms) SHOW TIME ZONE
109
- PGError: ERROR: column "rooms.dorm_id" must appear in the GROUP BY clause or be used in an aggregate function
110
- LINE 1: SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_ass...
111
- ^
112
- : SELECT "rooms".*, COUNT(*) FROM "rooms" INNER JOIN "room_assignments" ON ("rooms"."dorm_id" = "room_assignments"."dorm_id" AND "rooms"."room_id" = "room_assignments"."room_id") WHERE (("room_assignments".student_id = 1))
113
- SQL (0.0ms) SHOW client_min_messages
114
- SQL (0.0ms) SET client_min_messages TO 'panic'
115
- SQL (0.0ms) SET standard_conforming_strings = on
116
- SQL (0.0ms) SET client_min_messages TO 'notice'
117
- SQL (0.0ms) SHOW TIME ZONE
118
- SQL (1.0ms) SHOW client_min_messages
119
- SQL (0.0ms) SET client_min_messages TO 'panic'
120
- SQL (0.0ms) SET standard_conforming_strings = on
121
- SQL (1.0ms) SET client_min_messages TO 'notice'
122
- SQL (0.0ms) SHOW TIME ZONE
123
- SQL (0.0ms) SHOW client_min_messages
124
- SQL (0.0ms) SET client_min_messages TO 'panic'
125
- SQL (0.0ms) SET standard_conforming_strings = on
126
- SQL (1.0ms) SET client_min_messages TO 'notice'
127
- SQL (0.0ms) SHOW TIME ZONE
128
- SQL (1.0ms) SHOW client_min_messages
129
- SQL (0.0ms) SET client_min_messages TO 'panic'
130
- SQL (0.0ms) SET standard_conforming_strings = on
131
- SQL (0.0ms) SET client_min_messages TO 'notice'
132
- SQL (0.0ms) SHOW TIME ZONE
133
- SQL (1.0ms) SHOW client_min_messages
134
- SQL (1.0ms) SET client_min_messages TO 'panic'
135
- SQL (0.0ms) SET standard_conforming_strings = on
136
- SQL (0.0ms) SET client_min_messages TO 'notice'
137
- SQL (1.0ms) SHOW TIME ZONE
138
- SQL (1.0ms) SHOW client_min_messages
139
- SQL (0.0ms) SET client_min_messages TO 'panic'
140
- SQL (0.0ms) SET standard_conforming_strings = on
141
- SQL (1.0ms) SET client_min_messages TO 'notice'
142
- SQL (0.0ms) SHOW TIME ZONE
143
- SQL (0.0ms) SHOW client_min_messages
144
- SQL (0.0ms) SET client_min_messages TO 'panic'
145
- SQL (0.0ms) SET standard_conforming_strings = on
146
- SQL (0.0ms) SET client_min_messages TO 'notice'
147
- SQL (0.0ms) SHOW TIME ZONE
148
- SQL (0.0ms) SHOW client_min_messages
149
- SQL (0.0ms) SET client_min_messages TO 'panic'
150
- SQL (0.0ms) SET standard_conforming_strings = on
151
- SQL (0.0ms) SET client_min_messages TO 'notice'
152
- SQL (0.0ms) SHOW TIME ZONE
153
- SQL (1.0ms) SHOW client_min_messages
154
- SQL (0.0ms) SET client_min_messages TO 'panic'
155
- SQL (1.0ms) SET standard_conforming_strings = on
156
- SQL (1.0ms) SET client_min_messages TO 'notice'
157
- SQL (1.0ms) SHOW TIME ZONE
158
- SQL (1.0ms) SHOW client_min_messages
159
- SQL (0.0ms) SET client_min_messages TO 'panic'
160
- SQL (0.0ms) SET standard_conforming_strings = on
161
- SQL (0.0ms) SET client_min_messages TO 'notice'
162
- SQL (0.0ms) SHOW TIME ZONE
163
- SQL (0.0ms) SHOW client_min_messages
164
- SQL (0.0ms) SET client_min_messages TO 'panic'
165
- SQL (0.0ms) SET standard_conforming_strings = on
166
- SQL (0.0ms) SET client_min_messages TO 'notice'
167
- SQL (0.0ms) SHOW TIME ZONE
168
- PGError: ERROR: schema "(SELECT DISTINCT "tariffs"" does not exist
169
- LINE 1: SELECT COUNT(*) FROM "(SELECT DISTINCT ""tariffs"""."tariff_...
170
- ^
171
- : SELECT COUNT(*) FROM "(SELECT DISTINCT ""tariffs"""."tariff_id"
172
- SQL (1.0ms) SHOW client_min_messages
173
- SQL (0.0ms) SET client_min_messages TO 'panic'
174
- SQL (1.0ms) SET standard_conforming_strings = on
175
- SQL (1.0ms) SET client_min_messages TO 'notice'
176
- SQL (0.0ms) SHOW TIME ZONE
177
- PGError: ERROR: schema "(SELECT DISTINCT "tariffs"" does not exist
178
- LINE 1: SELECT COUNT(*) FROM "(SELECT DISTINCT ""tariffs"""."tariff_...
179
- ^
180
- : SELECT COUNT(*) FROM "(SELECT DISTINCT ""tariffs"""."tariff_id"
181
- SQL (0.0ms) SHOW client_min_messages
182
- SQL (0.0ms) SET client_min_messages TO 'panic'
183
- SQL (0.0ms) SET standard_conforming_strings = on
184
- SQL (0.0ms) SET client_min_messages TO 'notice'
185
- SQL (1.0ms) SHOW TIME ZONE
186
- PGError: ERROR: schema "(SELECT DISTINCT "tariffs"" does not exist
187
- LINE 1: SELECT COUNT(*) FROM "(SELECT DISTINCT ""tariffs"""."tariff_...
188
- ^
189
- : SELECT COUNT(*) FROM "(SELECT DISTINCT ""tariffs"""."tariff_id"
190
- SQL (0.0ms) SHOW client_min_messages
191
- SQL (0.0ms) SET client_min_messages TO 'panic'
192
- SQL (0.0ms) SET standard_conforming_strings = on
193
- SQL (0.0ms) SET client_min_messages TO 'notice'
194
- SQL (0.0ms) SHOW TIME ZONE
195
- SQL (0.0ms) SHOW client_min_messages
196
- SQL (0.0ms) SET client_min_messages TO 'panic'
197
- SQL (0.0ms) SET standard_conforming_strings = on
198
- SQL (1.0ms) SET client_min_messages TO 'notice'
199
- SQL (0.0ms) SHOW TIME ZONE
200
- SQL (0.0ms) SHOW client_min_messages
201
- SQL (0.0ms) SET client_min_messages TO 'panic'
202
- SQL (0.0ms) SET standard_conforming_strings = on
203
- SQL (0.0ms) SET client_min_messages TO 'notice'
204
- SQL (0.0ms) SHOW TIME ZONE
205
- TypeError: wrong argument type Arel::SelectManager (expected String): #<Arel::SelectManager:0x59f0df0>
206
- SQL (1.0ms) SHOW client_min_messages
207
- SQL (1.0ms) SET client_min_messages TO 'panic'
208
- SQL (0.0ms) SET standard_conforming_strings = on
209
- SQL (0.0ms) SET client_min_messages TO 'notice'
210
- SQL (1.0ms) SHOW TIME ZONE
211
- SQL (0.0ms) SHOW client_min_messages
212
- SQL (0.0ms) SET client_min_messages TO 'panic'
213
- SQL (0.0ms) SET standard_conforming_strings = on
214
- SQL (0.0ms) SET client_min_messages TO 'notice'
215
- SQL (1.0ms) SHOW TIME ZONE
216
- SQL (0.0ms) SHOW client_min_messages
217
- SQL (0.0ms) SET client_min_messages TO 'panic'
218
- SQL (1.0ms) SET standard_conforming_strings = on
219
- SQL (0.0ms) SET client_min_messages TO 'notice'
220
- SQL (0.0ms) SHOW TIME ZONE
221
- SQL (1.0ms) SHOW client_min_messages
222
- SQL (0.0ms) SET client_min_messages TO 'panic'
223
- SQL (1.0ms) SET standard_conforming_strings = on
224
- SQL (0.0ms) SET client_min_messages TO 'notice'
225
- SQL (0.0ms) SHOW TIME ZONE
226
- PGError: ERROR: column "i" does not exist
227
- LINE 1: SELECT COUNT(DISTINCT i) FROM "products" LEFT OUTER JOIN "pr...
228
- ^
229
- : SELECT COUNT(DISTINCT i) FROM "products" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."product_id" = "products"."id"
230
- SQL (1.0ms) SHOW client_min_messages
231
- SQL (1.0ms) SET client_min_messages TO 'panic'
232
- SQL (0.0ms) SET standard_conforming_strings = on
233
- SQL (0.0ms) SET client_min_messages TO 'notice'
234
- SQL (0.0ms) SHOW TIME ZONE
235
- SQL (1.0ms) SHOW client_min_messages
236
- SQL (1.0ms) SET client_min_messages TO 'panic'
237
- SQL (0.0ms) SET standard_conforming_strings = on
238
- SQL (0.0ms) SET client_min_messages TO 'notice'
239
- SQL (0.0ms) SHOW TIME ZONE
240
- SQL (0.0ms) SHOW client_min_messages
241
- SQL (0.0ms) SET client_min_messages TO 'panic'
242
- SQL (0.0ms) SET standard_conforming_strings = on
243
- SQL (0.0ms) SET client_min_messages TO 'notice'
244
- SQL (0.0ms) SHOW TIME ZONE
245
- SQL (0.0ms) SHOW client_min_messages
246
- SQL (0.0ms) SET client_min_messages TO 'panic'
247
- SQL (0.0ms) SET standard_conforming_strings = on
248
- SQL (0.0ms) SET client_min_messages TO 'notice'
249
- SQL (0.0ms) SHOW TIME ZONE
250
- PGError: ERROR: column "tariff_idstart_date" does not exist
251
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
252
- ^
253
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
254
- SQL (0.0ms) SHOW client_min_messages
255
- SQL (0.0ms) SET client_min_messages TO 'panic'
256
- SQL (0.0ms) SET standard_conforming_strings = on
257
- SQL (0.0ms) SET client_min_messages TO 'notice'
258
- SQL (0.0ms) SHOW TIME ZONE
259
- PGError: ERROR: column "tariff_idstart_date" does not exist
260
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
261
- ^
262
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
263
- PGError: ERROR: operator does not exist: character varying = integer
264
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
265
- ^
266
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
267
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
268
- SQL (0.0ms) SHOW client_min_messages
269
- SQL (0.0ms) SET client_min_messages TO 'panic'
270
- SQL (0.0ms) SET standard_conforming_strings = on
271
- SQL (0.0ms) SET client_min_messages TO 'notice'
272
- SQL (0.0ms) SHOW TIME ZONE
273
- SQL (0.0ms) SHOW client_min_messages
274
- SQL (1.0ms) SET client_min_messages TO 'panic'
275
- SQL (0.0ms) SET standard_conforming_strings = on
276
- SQL (0.0ms) SET client_min_messages TO 'notice'
277
- SQL (1.0ms) SHOW TIME ZONE
278
- SQL (0.0ms) SHOW client_min_messages
279
- SQL (0.0ms) SET client_min_messages TO 'panic'
280
- SQL (0.0ms) SET standard_conforming_strings = on
281
- SQL (0.0ms) SET client_min_messages TO 'notice'
282
- SQL (0.0ms) SHOW TIME ZONE
283
- SQL (1.0ms) SHOW client_min_messages
284
- SQL (0.0ms) SET client_min_messages TO 'panic'
285
- SQL (0.0ms) SET standard_conforming_strings = on
286
- SQL (0.0ms) SET client_min_messages TO 'notice'
287
- SQL (0.0ms) SHOW TIME ZONE
288
- SQL (29.0ms) SHOW client_min_messages
289
- SQL (0.0ms) SET client_min_messages TO 'panic'
290
- SQL (0.0ms) SET standard_conforming_strings = on
291
- SQL (1.0ms) SET client_min_messages TO 'notice'
292
- SQL (0.0ms) SHOW TIME ZONE
293
- PGError: ERROR: null value in column "product_id" violates not-null constraint
294
- : UPDATE "product_tariffs" SET "product_id" = NULL WHERE "product_tariffs"."product_id" = 1 AND "product_tariffs"."product_id" = 1 AND "product_tariffs"."tariff_id" = 2 AND "product_tariffs"."tariff_start_date" = '2010-11-20'
295
- SQL (1.0ms) SHOW client_min_messages
296
- SQL (0.0ms) SET client_min_messages TO 'panic'
297
- SQL (0.0ms) SET standard_conforming_strings = on
298
- SQL (0.0ms) SET client_min_messages TO 'notice'
299
- SQL (0.0ms) SHOW TIME ZONE
300
- SQL (1.0ms) SHOW client_min_messages
301
- SQL (0.0ms) SET client_min_messages TO 'panic'
302
- SQL (1.0ms) SET standard_conforming_strings = on
303
- SQL (0.0ms) SET client_min_messages TO 'notice'
304
- SQL (0.0ms) SHOW TIME ZONE
305
- SQL (0.0ms) SHOW client_min_messages
306
- SQL (0.0ms) SET client_min_messages TO 'panic'
307
- SQL (0.0ms) SET standard_conforming_strings = on
308
- SQL (15.6ms) SET client_min_messages TO 'notice'
309
- SQL (0.0ms) SHOW TIME ZONE
310
- SQL (0.0ms) SHOW client_min_messages
311
- SQL (0.0ms) SET client_min_messages TO 'panic'
312
- SQL (0.0ms) SET standard_conforming_strings = on
313
- SQL (0.0ms) SET client_min_messages TO 'notice'
314
- SQL (0.0ms) SHOW TIME ZONE
315
- SQL (0.0ms) SHOW client_min_messages
316
- SQL (0.0ms) SET client_min_messages TO 'panic'
317
- SQL (0.0ms) SET standard_conforming_strings = on
318
- SQL (0.0ms) SET client_min_messages TO 'notice'
319
- SQL (0.0ms) SHOW TIME ZONE
320
- SQL (0.0ms) SHOW client_min_messages
321
- SQL (0.0ms) SET client_min_messages TO 'panic'
322
- SQL (0.0ms) SET standard_conforming_strings = on
323
- SQL (0.0ms) SET client_min_messages TO 'notice'
324
- SQL (0.0ms) SHOW TIME ZONE
325
- SQL (0.0ms) SHOW client_min_messages
326
- SQL (0.0ms) SET client_min_messages TO 'panic'
327
- SQL (0.0ms) SET standard_conforming_strings = on
328
- SQL (0.0ms) SET client_min_messages TO 'notice'
329
- SQL (0.0ms) SHOW TIME ZONE
330
- SQL (0.0ms) SHOW client_min_messages
331
- SQL (0.0ms) SET client_min_messages TO 'panic'
332
- SQL (0.0ms) SET standard_conforming_strings = on
333
- SQL (0.0ms) SET client_min_messages TO 'notice'
334
- SQL (0.0ms) SHOW TIME ZONE
335
- SQL (0.0ms) SHOW client_min_messages
336
- SQL (0.0ms) SET client_min_messages TO 'panic'
337
- SQL (0.0ms) SET standard_conforming_strings = on
338
- SQL (0.0ms) SET client_min_messages TO 'notice'
339
- SQL (0.0ms) SHOW TIME ZONE
340
- SQL (0.0ms) SHOW client_min_messages
341
- SQL (0.0ms) SET client_min_messages TO 'panic'
342
- SQL (0.0ms) SET standard_conforming_strings = on
343
- SQL (0.0ms) SET client_min_messages TO 'notice'
344
- SQL (0.0ms) SHOW TIME ZONE
345
- SQL (0.0ms) SHOW client_min_messages
346
- SQL (0.0ms) SET client_min_messages TO 'panic'
347
- SQL (0.0ms) SET standard_conforming_strings = on
348
- SQL (0.0ms) SET client_min_messages TO 'notice'
349
- SQL (0.0ms) SHOW TIME ZONE
350
- SQL (0.0ms) SHOW client_min_messages
351
- SQL (0.0ms) SET client_min_messages TO 'panic'
352
- SQL (0.0ms) SET standard_conforming_strings = on
353
- SQL (0.0ms) SET client_min_messages TO 'notice'
354
- SQL (15.6ms) SHOW TIME ZONE
355
- SQL (0.0ms) SHOW client_min_messages
356
- SQL (0.0ms) SET client_min_messages TO 'panic'
357
- SQL (0.0ms) SET standard_conforming_strings = on
358
- SQL (0.0ms) SET client_min_messages TO 'notice'
359
- SQL (0.0ms) SHOW TIME ZONE
360
- SQL (0.0ms) SHOW client_min_messages
361
- SQL (0.0ms) SET client_min_messages TO 'panic'
362
- SQL (0.0ms) SET standard_conforming_strings = on
363
- SQL (0.0ms) SET client_min_messages TO 'notice'
364
- SQL (0.0ms) SHOW TIME ZONE
365
- SQL (0.0ms) SHOW client_min_messages
366
- SQL (0.0ms) SET client_min_messages TO 'panic'
367
- SQL (0.0ms) SET standard_conforming_strings = on
368
- SQL (0.0ms) SET client_min_messages TO 'notice'
369
- SQL (0.0ms) SHOW TIME ZONE
370
- SQL (0.0ms) SHOW client_min_messages
371
- SQL (0.0ms) SET client_min_messages TO 'panic'
372
- SQL (0.0ms) SET standard_conforming_strings = on
373
- SQL (0.0ms) SET client_min_messages TO 'notice'
374
- SQL (0.0ms) SHOW TIME ZONE
375
- SQL (0.0ms) SHOW client_min_messages
376
- SQL (0.0ms) SET client_min_messages TO 'panic'
377
- SQL (0.0ms) SET standard_conforming_strings = on
378
- SQL (0.0ms) SET client_min_messages TO 'notice'
379
- SQL (0.0ms) SHOW TIME ZONE
380
- SQL (0.0ms) SHOW client_min_messages
381
- SQL (0.0ms) SET client_min_messages TO 'panic'
382
- SQL (0.0ms) SET standard_conforming_strings = on
383
- SQL (0.0ms) SET client_min_messages TO 'notice'
384
- SQL (0.0ms) SHOW TIME ZONE
385
- PGError: ERROR: column "tariff_idstart_date" does not exist
386
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
387
- ^
388
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
389
- PGError: ERROR: operator does not exist: character varying = integer
390
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
391
- ^
392
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
393
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
394
- SQL (0.0ms) SHOW client_min_messages
395
- SQL (0.0ms) SET client_min_messages TO 'panic'
396
- SQL (0.0ms) SET standard_conforming_strings = on
397
- SQL (0.0ms) SET client_min_messages TO 'notice'
398
- SQL (0.0ms) SHOW TIME ZONE
399
- SQL (0.0ms) SHOW client_min_messages
400
- SQL (0.0ms) SET client_min_messages TO 'panic'
401
- SQL (0.0ms) SET standard_conforming_strings = on
402
- SQL (0.0ms) SET client_min_messages TO 'notice'
403
- SQL (0.0ms) SHOW TIME ZONE
404
- SQL (0.0ms) SHOW client_min_messages
405
- SQL (0.0ms) SET client_min_messages TO 'panic'
406
- SQL (0.0ms) SET standard_conforming_strings = on
407
- SQL (0.0ms) SET client_min_messages TO 'notice'
408
- SQL (0.0ms) SHOW TIME ZONE
409
- SQL (0.0ms) SHOW client_min_messages
410
- SQL (0.0ms) SET client_min_messages TO 'panic'
411
- SQL (0.0ms) SET standard_conforming_strings = on
412
- SQL (0.0ms) SET client_min_messages TO 'notice'
413
- SQL (0.0ms) SHOW TIME ZONE
414
- SQL (0.0ms) SHOW client_min_messages
415
- SQL (0.0ms) SET client_min_messages TO 'panic'
416
- SQL (0.0ms) SET standard_conforming_strings = on
417
- SQL (0.0ms) SET client_min_messages TO 'notice'
418
- SQL (0.0ms) SHOW TIME ZONE
419
- SQL (0.0ms) SHOW client_min_messages
420
- SQL (0.0ms) SET client_min_messages TO 'panic'
421
- SQL (0.0ms) SET standard_conforming_strings = on
422
- SQL (0.0ms) SET client_min_messages TO 'notice'
423
- SQL (0.0ms) SHOW TIME ZONE
424
- SQL (0.0ms) SHOW client_min_messages
425
- SQL (0.0ms) SET client_min_messages TO 'panic'
426
- SQL (15.6ms) SET standard_conforming_strings = on
427
- SQL (0.0ms) SET client_min_messages TO 'notice'
428
- SQL (0.0ms) SHOW TIME ZONE
429
- SQL (0.0ms) SHOW client_min_messages
430
- SQL (0.0ms) SET client_min_messages TO 'panic'
431
- SQL (0.0ms) SET standard_conforming_strings = on
432
- SQL (0.0ms) SET client_min_messages TO 'notice'
433
- SQL (0.0ms) SHOW TIME ZONE
434
- PGError: ERROR: column "tariff_idstart_date" does not exist
435
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
436
- ^
437
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
438
- PGError: ERROR: operator does not exist: character varying = integer
439
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
440
- ^
441
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
442
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
443
- SQL (0.0ms) SHOW client_min_messages
444
- SQL (0.0ms) SET client_min_messages TO 'panic'
445
- SQL (0.0ms) SET standard_conforming_strings = on
446
- SQL (0.0ms) SET client_min_messages TO 'notice'
447
- SQL (0.0ms) SHOW TIME ZONE
448
- SQL (0.0ms) SHOW client_min_messages
449
- SQL (0.0ms) SET client_min_messages TO 'panic'
450
- SQL (0.0ms) SET standard_conforming_strings = on
451
- SQL (0.0ms) SET client_min_messages TO 'notice'
452
- SQL (0.0ms) SHOW TIME ZONE
453
- SQL (0.0ms) SHOW client_min_messages
454
- SQL (0.0ms) SET client_min_messages TO 'panic'
455
- SQL (0.0ms) SET standard_conforming_strings = on
456
- SQL (0.0ms) SET client_min_messages TO 'notice'
457
- SQL (0.0ms) SHOW TIME ZONE
458
- SQL (1.0ms) SHOW client_min_messages
459
- SQL (0.0ms) SET client_min_messages TO 'panic'
460
- SQL (0.0ms) SET standard_conforming_strings = on
461
- SQL (1.0ms) SET client_min_messages TO 'notice'
462
- SQL (0.0ms) SHOW TIME ZONE
463
- PGError: ERROR: null value in column "franchise_id" violates not-null constraint
464
- : INSERT INTO "restaurants_suburbs" ("suburb_id", "city_id") VALUES (22, 22)
465
- SQL (0.0ms) SHOW client_min_messages
466
- SQL (1.0ms) SET client_min_messages TO 'panic'
467
- SQL (0.0ms) SET standard_conforming_strings = on
468
- SQL (0.0ms) SET client_min_messages TO 'notice'
469
- SQL (0.0ms) SHOW TIME ZONE
470
- SQL (0.0ms) SHOW client_min_messages
471
- SQL (0.0ms) SET client_min_messages TO 'panic'
472
- SQL (0.0ms) SET standard_conforming_strings = on
473
- SQL (1.0ms) SET client_min_messages TO 'notice'
474
- SQL (0.0ms) SHOW TIME ZONE
475
- SQL (0.0ms) SHOW client_min_messages
476
- SQL (0.0ms) SET client_min_messages TO 'panic'
477
- SQL (0.0ms) SET standard_conforming_strings = on
478
- SQL (0.0ms) SET client_min_messages TO 'notice'
479
- SQL (0.0ms) SHOW TIME ZONE
480
- SQL (1.0ms) SHOW client_min_messages
481
- SQL (0.0ms) SET client_min_messages TO 'panic'
482
- SQL (0.0ms) SET standard_conforming_strings = on
483
- SQL (0.0ms) SET client_min_messages TO 'notice'
484
- SQL (1.0ms) SHOW TIME ZONE
485
- SQL (0.0ms) SHOW client_min_messages
486
- SQL (1.0ms) SET client_min_messages TO 'panic'
487
- SQL (0.0ms) SET standard_conforming_strings = on
488
- SQL (0.0ms) SET client_min_messages TO 'notice'
489
- SQL (0.0ms) SHOW TIME ZONE
490
- SQL (1.0ms) SHOW client_min_messages
491
- SQL (1.0ms) SET client_min_messages TO 'panic'
492
- SQL (0.0ms) SET standard_conforming_strings = on
493
- SQL (0.0ms) SET client_min_messages TO 'notice'
494
- SQL (0.0ms) SHOW TIME ZONE
495
- SQL (1.0ms) SHOW client_min_messages
496
- SQL (1.0ms) SET client_min_messages TO 'panic'
497
- SQL (0.0ms) SET standard_conforming_strings = on
498
- SQL (0.0ms) SET client_min_messages TO 'notice'
499
- SQL (1.0ms) SHOW TIME ZONE
500
- SQL (0.0ms) SHOW client_min_messages
501
- SQL (0.0ms) SET client_min_messages TO 'panic'
502
- SQL (0.0ms) SET standard_conforming_strings = on
503
- SQL (0.0ms) SET client_min_messages TO 'notice'
504
- SQL (0.0ms) SHOW TIME ZONE
505
- SQL (0.0ms) SHOW client_min_messages
506
- SQL (1.0ms) SET client_min_messages TO 'panic'
507
- SQL (0.0ms) SET standard_conforming_strings = on
508
- SQL (0.0ms) SET client_min_messages TO 'notice'
509
- SQL (0.0ms) SHOW TIME ZONE
510
- SQL (0.0ms) SHOW client_min_messages
511
- SQL (0.0ms) SET client_min_messages TO 'panic'
512
- SQL (0.0ms) SET standard_conforming_strings = on
513
- SQL (0.0ms) SET client_min_messages TO 'notice'
514
- SQL (0.0ms) SHOW TIME ZONE
515
- SQL (1.0ms) SHOW client_min_messages
516
- SQL (0.0ms) SET client_min_messages TO 'panic'
517
- SQL (0.0ms) SET standard_conforming_strings = on
518
- SQL (1.0ms) SET client_min_messages TO 'notice'
519
- SQL (0.0ms) SHOW TIME ZONE
520
- SQL (0.0ms) SHOW client_min_messages
521
- SQL (0.0ms) SET client_min_messages TO 'panic'
522
- SQL (0.0ms) SET standard_conforming_strings = on
523
- SQL (0.0ms) SET client_min_messages TO 'notice'
524
- SQL (1.0ms) SHOW TIME ZONE
525
- PGError: ERROR: column "tariff_idstart_date" does not exist
526
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
527
- ^
528
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
529
- PGError: ERROR: operator does not exist: character varying = integer
530
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
531
- ^
532
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
533
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
534
- SQL (0.0ms) SHOW client_min_messages
535
- SQL (0.0ms) SET client_min_messages TO 'panic'
536
- SQL (0.0ms) SET standard_conforming_strings = on
537
- SQL (0.0ms) SET client_min_messages TO 'notice'
538
- SQL (0.0ms) SHOW TIME ZONE
539
- PGError: ERROR: column "tariff_idstart_date" does not exist
540
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
541
- ^
542
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
543
- PGError: ERROR: operator does not exist: character varying = integer
544
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
545
- ^
546
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
547
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
548
- SQL (0.0ms) SHOW client_min_messages
549
- SQL (0.0ms) SET client_min_messages TO 'panic'
550
- SQL (0.0ms) SET standard_conforming_strings = on
551
- SQL (1.0ms) SET client_min_messages TO 'notice'
552
- SQL (0.0ms) SHOW TIME ZONE
553
- PGError: ERROR: column "tariff_idstart_date" does not exist
554
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
555
- ^
556
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
557
- PGError: ERROR: operator does not exist: character varying = integer
558
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
559
- ^
560
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
561
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
562
- SQL (35.0ms) SHOW client_min_messages
563
- SQL (0.0ms) SET client_min_messages TO 'panic'
564
- SQL (0.0ms) SET standard_conforming_strings = on
565
- SQL (1.0ms) SET client_min_messages TO 'notice'
566
- SQL (0.0ms) SHOW TIME ZONE
567
- PGError: ERROR: column "tariff_idstart_date" does not exist
568
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
569
- ^
570
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
571
- PGError: ERROR: operator does not exist: character varying = integer
572
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
573
- ^
574
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
575
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))
576
- SQL (1.0ms) SHOW client_min_messages
577
- SQL (0.0ms) SET client_min_messages TO 'panic'
578
- SQL (0.0ms) SET standard_conforming_strings = on
579
- SQL (0.0ms) SET client_min_messages TO 'notice'
580
- SQL (0.0ms) SHOW TIME ZONE
581
- PGError: ERROR: column "tariff_idstart_date" does not exist
582
- LINE 1: SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LE...
583
- ^
584
- : SELECT COUNT(DISTINCT tariff_idstart_date) FROM "tariffs" LEFT OUTER JOIN "product_tariffs" ON "product_tariffs"."tariff_id" = "tariffs"."tariff_id" AND "product_tariffs"."tariff_start_date" = "tariffs"."start_date"
585
- PGError: ERROR: operator does not exist: character varying = integer
586
- LINE 1: ...ments".person_type = 'User') AND ("comments".person_id = 1))
587
- ^
588
- HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
589
- : SELECT "hacks".* FROM "hacks" INNER JOIN "comments" ON ("hacks"."name" = "comments"."hack_id") WHERE (("comments".person_type = 'User') AND ("comments".person_id = 1))