Clean up backend export logic

* Differentiate character lengths from byte lengths (see #112)

* Use GNU-style indexed initializers for clarity

* Remove needs_quotes since it's not used anywhere
This commit is contained in:
Evan Miller
2021-01-19 18:03:10 -05:00
parent dbc1aa7ea2
commit 9e85bc4153
2 changed files with 101 additions and 107 deletions

View File

@@ -210,9 +210,10 @@ typedef struct mdbsargtree MdbSargNode;
typedef struct {
char *name;
unsigned char needs_length; /* or precision */
unsigned char needs_precision;
unsigned char needs_scale;
unsigned char needs_quotes;
unsigned char needs_byte_length;
unsigned char needs_char_length;
} MdbBackendType;
typedef struct {