Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ require (
github.com/docker/docker v25.0.6+incompatible
github.com/evanphx/json-patch/v5 v5.9.0
github.com/fatih/color v1.17.0
github.com/go-sql-driver/mysql v1.8.1
github.com/gocarina/gocsv v0.0.0-20220927221512-ad3251f9fa25
github.com/hashicorp/go-retryablehttp v0.7.7
github.com/hashicorp/go-version v1.6.0
Expand Down Expand Up @@ -54,6 +55,7 @@ require (
cel.dev/expr v0.23.0 // indirect
contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect
dario.cat/mergo v1.0.1 // indirect
filippo.io/edwards25519 v1.1.0 // indirect
github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 // indirect
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect
github.com/BurntSushi/toml v1.4.0 // indirect
Expand Down
3 changes: 2 additions & 1 deletion pkg/workflow/db/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"database/sql"
"fmt"

_ "github.com/go-sql-driver/mysql"
_ "github.com/jackc/pgx/v5/stdlib"
_ "github.com/mattn/go-sqlite3"
_ "github.com/microsoft/go-mssqldb"
Expand All @@ -36,7 +37,7 @@ func SQL(ctx context.Context, driver, connString string) (*sql.DB, error) {
}

func ListSQL(ctx context.Context, db *sql.DB, table string, opts ListOptions) ([]string, error) {
query := fmt.Sprintf(`SELECT key FROM "%s" WHERE key LIKE ?;`, table)
query := fmt.Sprintf("SELECT `id` FROM `%s` WHERE `id` LIKE ?;", table)
Copy link
Author

@johansja johansja Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is very likely that this line will break other state store. I just modify this based on what I am seeing from MySQL database that I'm currently seeing.

like := opts.AppID + "||dapr.internal." + opts.Namespace + "." + opts.AppID + ".workflow||%||metadata"

rows, err := db.QueryContext(ctx, query, like)
Expand Down