1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-06-23 00:17:47 +02:00

add readme and update error messages

This commit is contained in:
gedi
2014-02-06 17:03:46 +02:00
parent 3e67393335
commit 2fc5a0dd15
6 changed files with 352 additions and 25 deletions

View File

@ -41,9 +41,9 @@ func (e *queryBasedExpectation) argsMatches(args []driver.Value) bool {
if len(args) != len(e.args) {
return false
}
for k, v := range e.args {
for k, v := range args {
vi := reflect.ValueOf(v)
ai := reflect.ValueOf(args[k])
ai := reflect.ValueOf(e.args[k])
switch vi.Kind() {
case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
if vi.Int() != ai.Int() {