Fix unit tests.
This commit is contained in:
parent
9b826fff6e
commit
eccc17dc8a
10 changed files with 91 additions and 72 deletions
|
|
@ -42,6 +42,11 @@ func (q *queryData) InsertArgument(arg interface{}) {
|
|||
q.buff.WriteString(argPlaceholder)
|
||||
}
|
||||
|
||||
func (q *queryData) Reset() {
|
||||
q.buff.Reset()
|
||||
q.args = []interface{}{}
|
||||
}
|
||||
|
||||
func argToString(value interface{}) (string, error) {
|
||||
switch bindVal := value.(type) {
|
||||
case bool:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue