Tokenizer EConvertError - DateTime
Posted: 12.09.2011, 13:06
hi, i am using Delphi 7 lite on Windows 7 with MySQL 5.1.41
when i use SQL statement like this DATE_FORMAT(test,"%H:%i:%s") AS test
i get error EConvertError in IDE, in runtime is it OK
i try to debug this strange thing, and i found ZGenericSqlToken.pas
there is a method TZGenericSQLQuoteState.NextToken, which decodes part of SQL which contains two semicolons as a date, but in my case it is "%H:%i:%s" string decoded as a date and the conversion produces this error
can u help me, with this strange behaviour ??
i attach D7 example with sql dump
but enough is open a query whch contains DATE_FORMAT with format string containing 2 semicolons
thx Tomas, Prague
when i use SQL statement like this DATE_FORMAT(test,"%H:%i:%s") AS test
i get error EConvertError in IDE, in runtime is it OK
i try to debug this strange thing, and i found ZGenericSqlToken.pas
there is a method TZGenericSQLQuoteState.NextToken, which decodes part of SQL which contains two semicolons as a date, but in my case it is "%H:%i:%s" string decoded as a date and the conversion produces this error
can u help me, with this strange behaviour ??
i attach D7 example with sql dump
but enough is open a query whch contains DATE_FORMAT with format string containing 2 semicolons
thx Tomas, Prague