(t *testing.T)
| 81 | } |
| 82 | |
| 83 | func TestInterpolateParamsUint64(t *testing.T) { |
| 84 | mc := &mysqlConn{ |
| 85 | buf: newBuffer(), |
| 86 | maxAllowedPacket: maxPacketSize, |
| 87 | cfg: &Config{ |
| 88 | InterpolateParams: true, |
| 89 | }, |
| 90 | } |
| 91 | |
| 92 | q, err := mc.interpolateParams("SELECT ?", []driver.Value{uint64(42)}) |
| 93 | if err != nil { |
| 94 | t.Errorf("Expected err=nil, got err=%#v, q=%#v", err, q) |
| 95 | } |
| 96 | if q != "SELECT 42" { |
| 97 | t.Errorf("Expected uint64 interpolation to work, got q=%#v", q) |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | func TestCheckNamedValue(t *testing.T) { |
| 102 | value := driver.NamedValue{Value: ^uint64(0)} |
nothing calls this directly
no test coverage detected