summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 51d5f25)
raw | patch | inline | side by side (parent: 51d5f25)
author | Sebastian Harl <sh@tokkee.org> | |
Wed, 13 May 2015 07:57:20 +0000 (09:57 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Wed, 13 May 2015 07:57:20 +0000 (09:57 +0200) |
client/client.go | patch | blob | history | |
client/query.go | patch | blob | history |
diff --git a/client/client.go b/client/client.go
index cae54437a1880aa8891090d08856559eaea98773..e6a13030f1415256128f3ee18705a700a52f44b2 100644 (file)
--- a/client/client.go
+++ b/client/client.go
log.Println(string(res.Raw[4:]))
}
}
+
+ // Not reached; needed for Go1 compatibility.
+ return nil, nil
}
// ServerVersion queries and returns the version of the remote server.
diff --git a/client/query.go b/client/query.go
index d1224f40f73cc79ecc6dba3d12154f4ba19c8cd0..7bf503477d56a81c69e16090f06d1a8332ff1fbf 100644 (file)
--- a/client/query.go
+++ b/client/query.go
// 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,