forked from mirror/go-sqlite3
fix small codespell issue
This commit is contained in:
parent
4bde157d91
commit
b75aefcf46
|
@ -1517,7 +1517,7 @@ func (db *TestDB) tearDown() {
|
||||||
// q replaces ? parameters if needed
|
// q replaces ? parameters if needed
|
||||||
func (db *TestDB) q(sql string) string {
|
func (db *TestDB) q(sql string) string {
|
||||||
switch db.dialect {
|
switch db.dialect {
|
||||||
case POSTGRESQL: // repace with $1, $2, ..
|
case POSTGRESQL: // replace with $1, $2, ..
|
||||||
qrx := regexp.MustCompile(`\?`)
|
qrx := regexp.MustCompile(`\?`)
|
||||||
n := 0
|
n := 0
|
||||||
return qrx.ReplaceAllStringFunc(sql, func(string) string {
|
return qrx.ReplaceAllStringFunc(sql, func(string) string {
|
||||||
|
|
Loading…
Reference in New Issue