Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(snowflake): use index when update testCases in query test of snowflake (#8805)
zll60067507f7eab34
diff --git a/backend/plugin/db/snowflake/query_test.go b/backend/plugin/db/snowflake/query_test.goindex c434d23b17..56ca9a413e 100644--- a/backend/plugin/db/snowflake/query_test.go+++ b/backend/plugin/db/snowflake/query_test.go@@ -28,11 +28,11 @@ func runLimitTest(t *testing.T, file string, record bool) {err = yaml.Unmarshal(byteValue, &testCases)require.NoError(t, err)- for _, tc := range testCases {+ for i, tc := range testCases {want, err := getStatementWithResultLimit(tc.Stmt, tc.Count)require.NoError(t, err, tc.Stmt)if record {- tc.Want = want+ testCases[i].Want = want} else {require.Equal(t, tc.Want, want, tc.Stmt)}