fix: TestCRDB_CreateInstance (#6522)

This commit is contained in:
Silvan 2023-09-08 12:27:52 +02:00 committed by GitHub
parent 8c444a8442
commit 856d0d12e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -651,7 +651,7 @@ func TestCRDB_CreateInstance(t *testing.T) {
t.Errorf("CRDB.CreateInstance() error = %v, wantErr %v", err, tt.res.wantErr)
}
sequenceRow := testCRDBClient.QueryRow("SELECT EXISTS(SELECT 1 FROM [SHOW SEQUENCES FROM eventstore] WHERE sequence_name like $1)", "i_"+tt.args.instanceID+"%")
sequenceRow := testCRDBClient.QueryRow("SELECT EXISTS(SELECT 1 FROM [SHOW SEQUENCES] WHERE sequence_schema = 'eventstore' AND sequence_name like $1)", "i_"+tt.args.instanceID+"%")
var exists bool
err := sequenceRow.Scan(&exists)
if err != nil {