composite_primary_keys 5.0.14 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +14 -6
  2. data/History.rdoc +2 -8
  3. data/lib/composite_primary_keys.rb +3 -3
  4. data/lib/composite_primary_keys/associations/association.rb +1 -1
  5. data/lib/composite_primary_keys/associations/association_scope.rb +12 -13
  6. data/lib/composite_primary_keys/associations/has_and_belongs_to_many_association.rb +4 -4
  7. data/lib/composite_primary_keys/associations/has_many_association.rb +2 -2
  8. data/lib/composite_primary_keys/associations/join_dependency.rb +1 -1
  9. data/lib/composite_primary_keys/associations/join_dependency/join_part.rb +3 -3
  10. data/lib/composite_primary_keys/associations/preloader/association.rb +2 -2
  11. data/lib/composite_primary_keys/associations/preloader/belongs_to.rb +1 -1
  12. data/lib/composite_primary_keys/associations/preloader/has_and_belongs_to_many.rb +2 -2
  13. data/lib/composite_primary_keys/attribute_methods/dirty.rb +0 -2
  14. data/lib/composite_primary_keys/attribute_methods/read.rb +3 -3
  15. data/lib/composite_primary_keys/base.rb +3 -27
  16. data/lib/composite_primary_keys/connection_adapters/abstract/connection_specification_changes.rb +2 -2
  17. data/lib/composite_primary_keys/core.rb +28 -0
  18. data/lib/composite_primary_keys/persistence.rb +33 -50
  19. data/lib/composite_primary_keys/relation.rb +5 -5
  20. data/lib/composite_primary_keys/relation/calculations.rb +2 -2
  21. data/lib/composite_primary_keys/relation/query_methods.rb +14 -0
  22. data/lib/composite_primary_keys/version.rb +2 -2
  23. data/test/abstract_unit.rb +0 -1
  24. data/test/connections/databases.yml +10 -1
  25. data/test/debug.log +589 -0
  26. data/test/test_attributes.rb +1 -0
  27. data/test/test_calculations.rb +1 -1
  28. data/test/test_delete.rb +12 -0
  29. data/test/test_dup.rb +3 -2
  30. data/test/test_suite.rb +0 -2
  31. metadata +24 -32
  32. data/lib/composite_primary_keys/counter_cache.rb +0 -22
  33. data/test/fixtures/employees_group.rb +0 -2
  34. data/test/fixtures/employees_groups.yml +0 -15
  35. data/test/test_delete_without_pk.rb +0 -20
@@ -6,9 +6,9 @@ module ActiveRecord
6
6
  include CompositePrimaryKeys::ActiveRecord::Calculations
7
7
  include CompositePrimaryKeys::ActiveRecord::FinderMethods
8
8
  include CompositePrimaryKeys::ActiveRecord::QueryMethods
9
-
9
+
10
+
10
11
  def delete(id_or_array)
11
- ::ActiveRecord::IdentityMap.remove_by_id(self.symbolized_base_class, id_or_array) if ::ActiveRecord::IdentityMap.enabled?
12
12
  # Without CPK:
13
13
  # where(primary_key => id_or_array).delete_all
14
14
 
@@ -62,9 +62,9 @@ module ActiveRecord
62
62
  end
63
63
 
64
64
  alias :initialize_without_cpk :initialize
65
- def initialize(klass, table)
66
- initialize_without_cpk(klass, table)
67
- add_cpk_support if klass.composite?
65
+ def initialize(klass, table, values = {})
66
+ initialize_without_cpk(klass, table, values)
67
+ add_cpk_support if klass && klass.composite?
68
68
  add_cpk_where_values_hash
69
69
  end
70
70
 
@@ -50,8 +50,8 @@ module CompositePrimaryKeys
50
50
  relation.select_values = column_name.map do |column|
51
51
  Arel::Attribute.new(@klass.unscoped.table, column)
52
52
  end
53
-
54
- relation.distinct(true)
53
+
54
+ relation = relation.distinct(true)
55
55
  subquery = relation.arel.as(subquery_alias)
56
56
 
57
57
  sm = Arel::SelectManager.new relation.engine
@@ -24,4 +24,18 @@ module CompositePrimaryKeys::ActiveRecord::QueryMethods
24
24
  end.flatten
25
25
  end
26
26
 
27
+
28
+ def order(*args)
29
+ args.map! do |arg|
30
+ if arg.is_a?(Arel::Nodes::Ordering) && arg.expr.name.is_a?(Array)
31
+ arg = arg.expr.name.map do |key|
32
+ cloned_node = arg.clone
33
+ cloned_node.expr.name = key
34
+ cloned_node
35
+ end
36
+ end
37
+ arg
38
+ end if composite?
39
+ super(*args)
40
+ end
27
41
  end
@@ -1,8 +1,8 @@
1
1
  module CompositePrimaryKeys
2
2
  module VERSION
3
- MAJOR = 5
3
+ MAJOR = 6
4
4
  MINOR = 0
5
- TINY = 14
5
+ TINY = 0
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
  end
8
8
  end
@@ -1,6 +1,5 @@
1
1
  PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
2
2
 
3
- require "pp"
4
3
  require "test/unit"
5
4
 
6
5
  # To make debugging easier, test within this source tree versus an installed gem
@@ -1,7 +1,16 @@
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
- # 3. Build the database using rake <databasename>:build_database
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
+
5
14
  postgresql:
6
15
  adapter: postgresql
7
16
  database: composite_primary_keys_unittest
@@ -0,0 +1,589 @@
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))