forked from deblan/database-anonymizer
fix tests
This commit is contained in:
parent
5eb3701f9f
commit
23f432ea02
1 changed files with 2 additions and 2 deletions
|
|
@ -25,11 +25,11 @@ func TestEscapeColumn(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestGetNamedParameter(t *testing.T) {
|
func TestGetNamedParameter(t *testing.T) {
|
||||||
if GetNamedParameter("mysql", "foo", 1) != "foo=?" {
|
if GetNamedParameter("mysql", "foo", 1) != "`foo`=?" {
|
||||||
t.Fatalf("TestGetNamedParameter: mysql check failed")
|
t.Fatalf("TestGetNamedParameter: mysql check failed")
|
||||||
}
|
}
|
||||||
|
|
||||||
if GetNamedParameter("postgres", "foo", 1) != "foo=$1" {
|
if GetNamedParameter("postgres", "foo", 1) != "\"foo\"=$1" {
|
||||||
t.Fatalf("TestGetNamedParameter: postgres check failed")
|
t.Fatalf("TestGetNamedParameter: postgres check failed")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue