瀏覽代碼

add comment

INADA Naoki 9 年之前
父節點
當前提交
dbc3fe23a4
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      connection_test.go

+ 2 - 0
connection_test.go

@@ -49,6 +49,7 @@ func TestInterpolateParamsTooManyPlaceholders(t *testing.T) {
 }
 
 // We don't support placeholder in string literal for now.
+// https://github.com/go-sql-driver/mysql/pull/490
 func TestInterpolateParamsPlaceholderInString(t *testing.T) {
 	mc := &mysqlConn{
 		buf:              newBuffer(nil),
@@ -59,6 +60,7 @@ func TestInterpolateParamsPlaceholderInString(t *testing.T) {
 	}
 
 	q, err := mc.interpolateParams("SELECT 'abc?xyz',?", []driver.Value{int64(42)})
+	// When InterpolateParams support string literal, this should return `"SELECT 'abc?xyz', 42`
 	if err != driver.ErrSkip {
 		t.Errorf("Expected err=driver.ErrSkip, got err=%#v, q=%#v", err, q)
 	}