FirebirdSQL / fbjava

FB/Java plugin for Firebird
12 stars 5 forks source link

Wrong values on data type conversions when SQL's function/procedure parameter type not the same as Java's function parameter #12

Closed artyom-smirnov closed 3 years ago

artyom-smirnov commented 7 years ago

Example:

select test(-1) from rdb$database;
                 TEST 
===================== 
     -281470681743361 

When data type converter adding, data type changing, but length of data not updated (int was 4 as returned from engine, but long is 8 as want plugin), so part of data in message buffer overwritten by null flag.