Обсуждение: Parse problem in AbstractJdbc2ResultSet.parseQuery

Поиск
Список
Период
Сортировка

Parse problem in AbstractJdbc2ResultSet.parseQuery

От
Xavier Poinsard
Дата:
Hello,

I would like to report the following problem:
using an updatable resultset, the query is parsed to find the name of
the table to update in the parseQuery method.
Unfortunately the parsing is too much simple, it fails with the folling
query :

select col_A, col_B, extract(Month from col_with_date_type) from
table_to_update where ....

It found that tableName is "col_with_date_type)" since it only pays
attention to the from keyword and forgot the parenthesis.
The parsing should be fixed.

Xavier.