go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
89 stars 678 forks source link

test: ExplainSQL using consecutive pairs of escaper in SQL string represents an escaper #676

Closed iTanken closed 8 months ago

iTanken commented 8 months ago

Explain your user case and expected results

DB.Dialector.Explain("SELECT ? AS QUOTES_STR", `"`)

/*
=== RUN   TestExplain/sqlite

[0.000ms] [rows:-] SELECT """" AS QUOTES_STR
    main_test.go:50: result = `"`
--- PASS: TestExplain (0.00s)
    --- PASS: TestExplain/sqlite (0.00s)
PASS
*/