Open Suor opened 6 years ago
@Suor: Yeah, it should be possible to add binary
to the list by doing something like:
sql._reserved.binary = 'binary';
But that pollutes the global namespace, it'd be nice to add a way to extend this while leaving the original namespace alone, like we want to do for converters (#62). That'll be breaking change in 3.0, though, not something we can slip into 2.x.
Ah, yes this is possible. I looked that sql._reserved
is never used and forget about shallowness of a copy. I will hack it for now. Same as with conversions. We are struggling without proper inheritance here.
@Suor: Thanks
We are struggling without proper inheritance here.
Understood, that's next on my 3.x list.
Also - it would be great if we could set a custom value for '_autoQuoteChar' for the extension. In mysql identifiers are quoted with a backtick, not double quotes (unless setting a specific SQL mode).
thx @tamarzil! I created a new Issue to track this (#104).
This makes impossible e.g. adding a reserved word, see https://github.com/Suor/sql-bricks-postgres/issues/13