[erlang-bugs] Found odbc 64 bit bug!

Tobias Kraentzer tobias.kraentzer@REDACTED
Mon May 19 10:02:54 CEST 2008


Hi Ingela,

sorry for the delay, but I was working on an other topic.

It seems, that the patch fixed the problem with odbc:sql_query/2 and
odbc:param_query/3.

Thanks a lot :-)

Regards,
Tobias Kräntzer

Am Mittwoch, den 14.05.2008, 09:08 +0200 schrieb Ingela Anderton Andin:
> Hi again!
> 
> We have located the problem that I alerted you to the other day  with 
> the 64-bit  patch for integer handling.
> The following applied to the the code I originally sent you should do 
> the trick.
> 
> --- a/lib/odbc/c_src/odbcserver.c
> +++ b/lib/odbc/c_src/odbcserver.c
> @@ -1372,7 +1372,7 @@ static Boolean decode_params(byte *buffer, int
> *index, param_array **params,
>      param_array* param;
> 
>      ei_get_type(buffer, index, &erl_type, &size);
> -    param = params[i];
> +    param = &(*params)[i];
> 
>      switch (param->type.c) {
>      case SQL_C_CHAR:
> 
> 
> 
> Regards Ingela Erlang/OTP Ericsson
> 
-- 
Dipl.-Ing. (FH) Tobias Kräntzer, Fraunhofer-Institut für Software- und Systemtechnik ISST
Location-based Services, Wissenschaftlicher Mitarbeiter
Mollstrasse 1, 10178 Berlin, Germany
Telefon: +49-30-24306-348
<mailto:tobias.kraentzer@REDACTED>
<http://www.isst.fraunhofer.de>




More information about the erlang-bugs mailing list