[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE : RE : problems with back-sql
>
>> - ITS#2642 : tested, OK, though another problem occurs later in
>> backsql_count_children(), in the call to backsql_bindRowAsStrings()
(I
>> have to investigate this problem more).
>
>I'll also look at it.
>
>p.
While on the problem, I gdb'd it a little.
Here is what I saw: with oracle, the result from the SELECT COUNT(...)
request is typed SQL_NUMERIC (in backsql_bindRowAsStrings(), col_type==
2). So when there is no child, rows.cols[0] is set to "0.0000000" and
the strtol() call in backsql_count_children() sets the end pointer to
'.' and not to '\0'. The following test fails and the result is set to
LDAP_OTHER...
I don't know why the COUNT colum is typed SQL_NUMERIC in oracle and
SQL_INTEGER in MySQL...
Emmanuel