Skip to content

Commit 887d4e1

Browse files
committed
Test queries with leading comments on all adapters
Followup to b94efe9.
1 parent bfbf696 commit 887d4e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def test_doesnt_error_when_a_read_query_with_leading_chars_is_called_while_preve
453453
@connection.execute("INSERT INTO ex (data) VALUES ('138853948594')")
454454

455455
@connection_handler.while_preventing_writes do
456-
assert_equal 1, @connection.execute("(\n( SELECT * FROM ex WHERE data = '138853948594' ) )").entries.count
456+
assert_equal 1, @connection.execute("/*action:index*/(\n( SELECT * FROM ex WHERE data = '138853948594' ) )").entries.count
457457
end
458458
end
459459
end

activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ def test_doesnt_error_when_a_read_query_with_leading_chars_is_called_while_preve
667667
@conn.execute("INSERT INTO ex (data) VALUES ('138853948594')")
668668

669669
@connection_handler.while_preventing_writes do
670-
assert_equal 1, @conn.execute(" SELECT data from ex WHERE data = '138853948594'").count
670+
assert_equal 1, @conn.execute("/*action:index*/ SELECT data from ex WHERE data = '138853948594'").count
671671
end
672672
end
673673
end

0 commit comments

Comments
 (0)