On 08/12/2019 17:05, Alex Peshkoff via Firebird-devel wrote:
On 2019-12-08 17:10, Mark Rotteveel wrote:
For consistency of the grammar, I think it is better if the NATIVE
option is also prefixed with TO,
So instead of SET BIND <type> NATIVE, I think it should be SET BIND
<type> TO NATIVE. This would match with the form of SET BIND <type> TO
LEGACY, and grammatically, this also makes more sense to me, because
you instruct Firebird to bind the type *to* a type (even if you are
just saying to bind it to itself).
If others agree - no problems, that's 5 minutes change.
As I'm in process of adding support in Jaybird, would it be possible to
do that soon?
As a separate issue, I noticed a discrepancy: DECFLOAT is an alias for
DECFLOAT(34), but SET BIND DECFLOAT TO VARCHAR will map both
DECFLOAT(16) and DECFLOAT(34), while SET BIND DECFLOAT(34) TO VARCHAR
will only map DECFLOAT(34). Looking at the parser rules, I can't see
how it arrives at a different result for this.
That's as designed (see docs from previous email). Processing is done
not in grammar parser - therefire you do not see it. Look at
jrd/Coercion.cpp if you are interested how it works.
Thanks, it is clear to me now!
Mark
--
Mark Rotteveel
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel