@@ -188,7 +188,6 @@ def test_sql_queries(sentry_init, capture_events, with_integration):
188188 crumb = event ["breadcrumbs" ][- 1 ]
189189
190190 assert crumb ["message" ] == "SELECT count(*) FROM people_person WHERE foo = %s"
191- assert crumb ["data" ]["db.params" ] == [123 ]
192191
193192
194193@pytest .mark .django_db
@@ -216,7 +215,6 @@ def test_sql_dict_query_params(sentry_init, capture_events):
216215 assert crumb ["message" ] == (
217216 "SELECT count(*) FROM people_person WHERE foo = %(my_foo)s"
218217 )
219- assert crumb ["data" ]["db.params" ] == {"my_foo" : 10 }
220218
221219
222220@pytest .mark .parametrize (
@@ -249,7 +247,6 @@ def test_sql_psycopg2_string_composition(sentry_init, capture_events, query):
249247 event , = events
250248 crumb = event ["breadcrumbs" ][- 1 ]
251249 assert crumb ["message" ] == ('SELECT %(my_param)s FROM "foobar"' )
252- assert crumb ["data" ]["db.params" ] == {"my_param" : 10 }
253250
254251
255252@pytest .mark .django_db
@@ -288,16 +285,13 @@ def test_sql_psycopg2_placeholders(sentry_init, capture_events):
288285 assert event ["breadcrumbs" ][- 2 :] == [
289286 {
290287 "category" : "query" ,
291- "data" : {"db.paramstyle" : "format" },
288+ "data" : {},
292289 "message" : "create table my_test_table (foo text, bar date)" ,
293290 "type" : "default" ,
294291 },
295292 {
296293 "category" : "query" ,
297- "data" : {
298- "db.params" : {"first_var" : "fizz" , "second_var" : "not a date" },
299- "db.paramstyle" : "format" ,
300- },
294+ "data" : {},
301295 "message" : 'insert into my_test_table ("foo", "bar") values (%(first_var)s, '
302296 "%(second_var)s)" ,
303297 "type" : "default" ,
0 commit comments