Code

Fixed compatibility issues with Go 1.0 and 1.1.
[sysdb/go.git] / client / query.go
index d1224f40f73cc79ecc6dba3d12154f4ba19c8cd0..7bf503477d56a81c69e16090f06d1a8332ff1fbf 100644 (file)
@@ -66,7 +66,7 @@ func stringify(values ...interface{}) ([]interface{}, error) {
 // string. Let's just assume that this pattern never occurs in a real query
 // string (or else, users will have to work around this by not using
 // QueryString()).
-var badArgRE = regexp.MustCompile(`%!.?\(.+`)
+var badArgRE = regexp.MustCompile(`%!?[A-Za-z]?\(.+`)
 
 // QueryString formats a query string. The query q may include printf string
 // verbs (%s) for each argument. The arguments may be of type Identifier,