go-gorm / playground

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

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

Closed iTanken closed 11 months ago

iTanken commented 11 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
*/