composite_primary_keys 5.0.13 → 5.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NTVjMmVhMjcyMDljMDU3NWRjZTNhMzEyOTlhMDZhYTg1MTk0NDUxYg==
5
- data.tar.gz: !binary |-
6
- MDIxYzNmNjc2ZWZiMDdjZThjYTM2YzQ3MjVjODJiYjBmYzcwYzYxOQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- YjI2NjIwOWUzZGQyNDY3NTZhZTBiNjNjOWZlOTA5NDUyZTE2MWY4Y2UwNDAz
10
- ZWZlMWEwMmZjNDQ4ODc2OTI2YTk1YmIxMDU2YjY2MTlkOThhMTFlODdmNTE1
11
- MjRkNzhjMDA1YjRmZDZhODFkOTQ5MzhmM2U5ZTU2MzlhMWZlYWI=
12
- data.tar.gz: !binary |-
13
- NWZhZDQ3ZjhmNmNiZmFhZTI2YmZiYWJjNTE0OTA0ZWQxZjA3MzAzZTY2NzIz
14
- OTU0YjA2NDAxZmY3MWQ4ZTAwMjgwZDdhMWNjZjk0OGViYzdmNjRjZjk4MGZj
15
- NDEyMGFhMGNiNmZlZjY2YTJjMmVjMmQ1ZjI0MzgxOTcxYjE5ZDI=
2
+ SHA1:
3
+ metadata.gz: 6d742f5b3aa47b253ff251f23022e7341a295323
4
+ data.tar.gz: 784a15040a16aa863c8a663023597bcbd3ae0ca2
5
+ SHA512:
6
+ metadata.gz: dc637cd61e831a0b0f9bb7e227d68ca8e4c6d7b9860e1d795824a15b0da908f896b914fadd6070cf789885b3249d15e9dfaae73498c2ae5278d34d86148b09cd
7
+ data.tar.gz: 24fb04075dddee84c31aa8a43fcbabf1973384c512837f98dd7912a7472d9bf4c6f85b24a02adf5288c083b83b43a1ab0b54de5bb508880a8caef491ba2863ca
data/History.rdoc CHANGED
@@ -1,3 +1,11 @@
1
+ == 5.0.14 2013-03-16
2
+ * Raise error on destroy when no pk is set (Manuel Kniep)
3
+ * Fix bug where object == object returns false for new instances of a CPK model,
4
+ even though object.equal?(object) is true (Tyler Rick)
5
+ * Instead of the generic message "Number of attr_names and values do not match", give
6
+ specifics that would aid in debugging (Tyler Rick)
7
+ * Improve equality, ==, implmentation (Joe Goggins)
8
+
1
9
  == 5.0.13 2013-04-27
2
10
  * Batch query improvements (Jordan Byron)
3
11
  * Support nested attributes (aiasfina and Charlie Savage)
@@ -6,7 +6,7 @@ module ActiveRecord
6
6
  if attr_name.kind_of?(Array)
7
7
  value = [nil]*attr_name.length if value.nil?
8
8
  unless value.length == attr_name.length
9
- raise "Number of attr_names and values do not match"
9
+ raise "Number of attr_names #{attr_name.inspect} and values #{value.inspect} do not match"
10
10
  end
11
11
  [attr_name, value].transpose.map {|name,val| write_attribute(name, val)}
12
12
  value
@@ -136,7 +136,8 @@ module ActiveRecord
136
136
  end
137
137
 
138
138
  def ==(comparison_object)
139
- ids.is_a?(Array) ? super(comparison_object) && ids.all? {|id| id.present?} : super(comparison_object)
139
+ return true if equal? comparison_object
140
+ ids.is_a?(Array) ? super(comparison_object) && ids.all? {|id| !id.nil?} : super(comparison_object)
140
141
  end
141
142
 
142
143
  def can_change_primary_key_values?
@@ -13,6 +13,10 @@ module ActiveRecord
13
13
  where_hash = {}
14
14
  primary_keys = Array(self.class.primary_key)
15
15
 
16
+ if primary_keys.empty?
17
+ raise ActiveRecord::CompositeKeyError, "No primary key(s) defined for #{self.class.name}"
18
+ end
19
+
16
20
  #relation = self.class.unscoped.where(
17
21
  # self.class.arel_table[pk].eq(substitute))
18
22
 
@@ -2,7 +2,7 @@ module CompositePrimaryKeys
2
2
  module VERSION
3
3
  MAJOR = 5
4
4
  MINOR = 0
5
- TINY = 13
5
+ TINY = 14
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
  end
8
8
  end
@@ -1,16 +1,7 @@
1
1
  # To run tests:
2
2
  # 1. Copy this file to test/connections/databases.yml.
3
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
-
4
+ # 3. Build the database using rake <databasename>:build_database
14
5
  postgresql:
15
6
  adapter: postgresql
16
7
  database: composite_primary_keys_unittest
@@ -0,0 +1,2 @@
1
+ class EmployeesGroup < ActiveRecord::Base
2
+ end
@@ -0,0 +1,20 @@
1
+ require File.expand_path('../abstract_unit', __FILE__)
2
+
3
+ class TestDeleteWithoutPK < ActiveSupport::TestCase
4
+
5
+ # can't load fixtures because other test dependencies
6
+ setup do
7
+ EmployeesGroup.create(employee_id: 1, group_id: 1)
8
+ EmployeesGroup.create(employee_id: 1, group_id: 2)
9
+ EmployeesGroup.create(employee_id: 2, group_id: 1)
10
+ EmployeesGroup.create(employee_id: 2, group_id: 1)
11
+ end
12
+
13
+ def test_destroy_without_primary_key
14
+ employees_group = EmployeesGroup.first
15
+ assert_raise(ActiveRecord::CompositeKeyError) do
16
+ employees_group.destroy
17
+ end
18
+ assert_equal 4, EmployeesGroup.count
19
+ end
20
+ end
data/test/test_equal.rb CHANGED
@@ -7,6 +7,11 @@ class TestEqual < ActiveSupport::TestCase
7
7
  assert_not_equal(Capitol.new, Capitol.new)
8
8
  end
9
9
 
10
+ def test_same_new
11
+ it = Capitol.new
12
+ assert_equal(it, it)
13
+ end
14
+
10
15
  def test_same
11
16
  first = Capitol.find('Canada', 'Ottawa')
12
17
  second = Capitol.find('Canada', 'Ottawa')
@@ -18,4 +23,4 @@ class TestEqual < ActiveSupport::TestCase
18
23
  second = Capitol.find('Canada', 'Ottawa')
19
24
  assert_not_equal(first, second)
20
25
  end
21
- end
26
+ end
data/test/test_suite.rb CHANGED
@@ -22,6 +22,7 @@ require 'test/unit'
22
22
  test_tutorial_example
23
23
  test_update
24
24
  test_validations
25
+ test_delete_without_pk
25
26
  ).each do |test|
26
27
  require File.expand_path("../#{test}", __FILE__)
27
28
  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: 5.0.13
4
+ version: 5.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dr Nic Williams
@@ -9,26 +9,26 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-27 00:00:00.000000000 Z
12
+ date: 2014-03-16 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: 3.2.9
21
- - - ~>
21
+ - - "~>"
22
22
  - !ruby/object:Gem::Version
23
23
  version: 3.2.0
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - ! '>='
28
+ - - ">="
29
29
  - !ruby/object:Gem::Version
30
30
  version: 3.2.9
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 3.2.0
34
34
  description: Composite key support for ActiveRecord
@@ -37,20 +37,20 @@ executables: []
37
37
  extensions: []
38
38
  extra_rdoc_files: []
39
39
  files:
40
- - Rakefile
41
40
  - History.rdoc
42
41
  - README.rdoc
43
42
  - README_DB2.rdoc
43
+ - Rakefile
44
44
  - init.rb
45
45
  - install.rb
46
- - loader.rb
46
+ - lib/composite_primary_keys.rb
47
47
  - lib/composite_primary_keys/associations/association.rb
48
48
  - lib/composite_primary_keys/associations/association_scope.rb
49
49
  - lib/composite_primary_keys/associations/has_and_belongs_to_many_association.rb
50
50
  - lib/composite_primary_keys/associations/has_many_association.rb
51
+ - lib/composite_primary_keys/associations/join_dependency.rb
51
52
  - lib/composite_primary_keys/associations/join_dependency/join_association.rb
52
53
  - lib/composite_primary_keys/associations/join_dependency/join_part.rb
53
- - lib/composite_primary_keys/associations/join_dependency.rb
54
54
  - lib/composite_primary_keys/associations/preloader/association.rb
55
55
  - lib/composite_primary_keys/associations/preloader/belongs_to.rb
56
56
  - lib/composite_primary_keys/associations/preloader/has_and_belongs_to_many.rb
@@ -68,15 +68,15 @@ files:
68
68
  - lib/composite_primary_keys/fixtures.rb
69
69
  - lib/composite_primary_keys/nested_attributes.rb
70
70
  - lib/composite_primary_keys/persistence.rb
71
+ - lib/composite_primary_keys/relation.rb
71
72
  - lib/composite_primary_keys/relation/batches.rb
72
73
  - lib/composite_primary_keys/relation/calculations.rb
73
74
  - lib/composite_primary_keys/relation/finder_methods.rb
74
75
  - lib/composite_primary_keys/relation/query_methods.rb
75
- - lib/composite_primary_keys/relation.rb
76
76
  - lib/composite_primary_keys/sanitization.rb
77
77
  - lib/composite_primary_keys/validations/uniqueness.rb
78
78
  - lib/composite_primary_keys/version.rb
79
- - lib/composite_primary_keys.rb
79
+ - loader.rb
80
80
  - scripts/console.rb
81
81
  - scripts/txt2html
82
82
  - scripts/txt2js
@@ -86,6 +86,7 @@ files:
86
86
  - tasks/databases/sqlite3.rake
87
87
  - tasks/databases/sqlserver.rake
88
88
  - tasks/website.rake
89
+ - test/README_tests.rdoc
89
90
  - test/abstract_unit.rb
90
91
  - test/connections/connection_spec.rb
91
92
  - test/connections/databases.example.yml
@@ -98,7 +99,6 @@ files:
98
99
  - test/connections/native_sqlite3/connection.rb
99
100
  - test/connections/native_sqlserver/connection.rb
100
101
  - test/db_test.rb
101
- - test/debug.log
102
102
  - test/fixtures/article.rb
103
103
  - test/fixtures/articles.yml
104
104
  - test/fixtures/capitol.rb
@@ -120,19 +120,20 @@ files:
120
120
  - test/fixtures/dorms.yml
121
121
  - test/fixtures/employee.rb
122
122
  - test/fixtures/employees.yml
123
+ - test/fixtures/employees_group.rb
123
124
  - test/fixtures/employees_groups.yml
124
125
  - test/fixtures/group.rb
125
126
  - test/fixtures/groups.yml
126
127
  - test/fixtures/hack.rb
127
128
  - test/fixtures/hacks.yml
128
129
  - test/fixtures/membership.rb
129
- - test/fixtures/memberships.yml
130
130
  - test/fixtures/membership_status.rb
131
131
  - test/fixtures/membership_statuses.yml
132
+ - test/fixtures/memberships.yml
132
133
  - test/fixtures/product.rb
133
- - test/fixtures/products.yml
134
134
  - test/fixtures/product_tariff.rb
135
135
  - test/fixtures/product_tariffs.yml
136
+ - test/fixtures/products.yml
136
137
  - test/fixtures/reading.rb
137
138
  - test/fixtures/readings.yml
138
139
  - test/fixtures/reference_code.rb
@@ -143,13 +144,13 @@ files:
143
144
  - test/fixtures/restaurants.yml
144
145
  - test/fixtures/restaurants_suburbs.yml
145
146
  - test/fixtures/room.rb
146
- - test/fixtures/rooms.yml
147
147
  - test/fixtures/room_assignment.rb
148
148
  - test/fixtures/room_assignments.yml
149
149
  - test/fixtures/room_attribute.rb
150
- - test/fixtures/room_attributes.yml
151
150
  - test/fixtures/room_attribute_assignment.rb
152
151
  - test/fixtures/room_attribute_assignments.yml
152
+ - test/fixtures/room_attributes.yml
153
+ - test/fixtures/rooms.yml
153
154
  - test/fixtures/seat.rb
154
155
  - test/fixtures/seats.yml
155
156
  - test/fixtures/street.rb
@@ -164,16 +165,16 @@ files:
164
165
  - test/fixtures/users.yml
165
166
  - test/plugins/pagination.rb
166
167
  - test/plugins/pagination_helper.rb
167
- - test/README_tests.rdoc
168
168
  - test/setup.rb
169
169
  - test/test_associations.rb
170
- - test/test_attributes.rb
171
170
  - test/test_attribute_methods.rb
171
+ - test/test_attributes.rb
172
172
  - test/test_calculations.rb
173
173
  - test/test_composite_arrays.rb
174
174
  - test/test_counter_cache.rb
175
175
  - test/test_create.rb
176
176
  - test/test_delete.rb
177
+ - test/test_delete_without_pk.rb
177
178
  - test/test_dup.rb
178
179
  - test/test_equal.rb
179
180
  - test/test_exists.rb
@@ -200,24 +201,23 @@ require_paths:
200
201
  - lib
201
202
  required_ruby_version: !ruby/object:Gem::Requirement
202
203
  requirements:
203
- - - ! '>='
204
+ - - ">="
204
205
  - !ruby/object:Gem::Version
205
206
  version: 1.8.7
206
207
  required_rubygems_version: !ruby/object:Gem::Requirement
207
208
  requirements:
208
- - - ! '>='
209
+ - - ">="
209
210
  - !ruby/object:Gem::Version
210
211
  version: '0'
211
212
  requirements: []
212
213
  rubyforge_project: compositekeys
213
- rubygems_version: 2.0.3
214
+ rubygems_version: 2.2.2
214
215
  signing_key:
215
216
  specification_version: 4
216
217
  summary: Composite key support for ActiveRecord
217
218
  test_files:
218
219
  - test/abstract_unit.rb
219
220
  - test/db_test.rb
220
- - test/debug.log
221
221
  - test/README_tests.rdoc
222
222
  - test/setup.rb
223
223
  - test/test_associations.rb
@@ -228,6 +228,7 @@ test_files:
228
228
  - test/test_counter_cache.rb
229
229
  - test/test_create.rb
230
230
  - test/test_delete.rb
231
+ - test/test_delete_without_pk.rb
231
232
  - test/test_dup.rb
232
233
  - test/test_equal.rb
233
234
  - test/test_exists.rb
data/test/debug.log DELETED
@@ -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))