Fix sqlstate generation

This commit is contained in:
Steven Fackler
2019-12-02 17:55:08 -08:00
parent b4694471ad
commit a22f63b5bb
3 changed files with 300 additions and 299 deletions

View File

@@ -5,6 +5,6 @@ authors = ["Steven Fackler <sfackler@gmail.com>"]
[dependencies]
phf_codegen = "0.8"
regex = "1.3.1"
regex = "1.0"
marksman_escape = "0.1"
linked-hash-map = "0.5"

View File

@@ -200,7 +200,7 @@ fn parse_types() -> BTreeMap<u32, Type> {
let name = raw_type["typname"].clone();
let ident = range_vector_re.replace(&name, "_$1");
let ident = array_re.replace(&ident, "$1_array");
let ident = array_re.replace(&ident, "${1}_array");
let variant = snake_to_camel(&ident);
let ident = ident.to_ascii_uppercase();