mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-27 02:52:14 +01:00
14 lines
324 B
Go
14 lines
324 B
Go
package sql
|
|
|
|
import (
|
|
"github.com/go-gorp/gorp/v3"
|
|
"testing"
|
|
)
|
|
|
|
func TestValidatePort(t *testing.T) {
|
|
d := SqlDb{}
|
|
q := d.prepareQueryWithDialect("select * from `test` where id = ?, email = ?", gorp.PostgresDialect{})
|
|
if q != "select * from \"test\" where id = $1, email = $2" {
|
|
t.Error("invalid postgres query")
|
|
}
|
|
} |