Change regex to account for CockroachDB sequences
@@ -843,7 +843,7 @@ fn get_column_type(row: &ResultRow, enums: &[Enum]) -> ColumnType {
static RE_SEQ: Lazy<Regex> = Lazy::new(|| Regex::new("^(?:.+\\.)?\"?([^.\"]+)\"?").expect("compile regex"));
static AUTOINCREMENT_REGEX: Lazy<Regex> = Lazy::new(|| {
- Regex::new(r#"nextval\((\(?)'((.+)\.)?(("(?P<sequence>.+)")|(?P<sequence2>.+))'(::text\))?::regclass\)"#)
+ Regex::new(r#"nextval\((\(?)'((.+)\.)?(("(?P<sequence>.+)")|(?P<sequence2>.+))'(::text\))?::(regclass|REGCLASS)\)"#)
.expect("compile autoincrement regex")
});
