Skip to content

Commit 3f43a66

Browse files
committed
fix: test assertion on sql with quotes
1 parent 7501da3 commit 3f43a66

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cmd/substreams-sink-sql/from_proto_generate_csv_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ func TestFromProtoGenerateCSVCompatibility(t *testing.T) {
7777
// Check for schema creation
7878
assert.Contains(t, fullSQL, `CREATE SCHEMA IF NOT EXISTS "test_schema"`)
7979

80-
// Check for system tables
81-
assert.Contains(t, fullSQL, `CREATE TABLE IF NOT EXISTS "test_schema"."_sink_info_"`)
82-
assert.Contains(t, fullSQL, `CREATE TABLE IF NOT EXISTS "test_schema"."_cursor_"`)
83-
assert.Contains(t, fullSQL, `CREATE TABLE IF NOT EXISTS "test_schema"."_blocks_"`)
80+
// Check for system tables (match dialect static SQL, table names unquoted)
81+
assert.Contains(t, fullSQL, `CREATE TABLE IF NOT EXISTS "test_schema"._sink_info_`)
82+
assert.Contains(t, fullSQL, `CREATE TABLE IF NOT EXISTS "test_schema"._cursor_`)
83+
assert.Contains(t, fullSQL, `CREATE TABLE IF NOT EXISTS "test_schema"._blocks_`)
8484

8585
// Check for user table with system columns
8686
assert.Contains(t, fullSQL, `_block_number_ INTEGER NOT NULL`)

0 commit comments

Comments
 (0)