Forum Discussion
Hello!
I am having the exakt same problem. I am using ReadyAPI 2.2.0.
When executing the same sql via Oracle SQL Developer (we are runing Oracle Database 12c) I get the date without the .0 in the end.
Not a big problem, but slightly annoying :)
Cheers,
Rikard
- Nastya_Khovrina6 years agoSmartBear Alumni (Retired)
Hi,
If a value has the Date format in the Database (i.e. 2018-05-23 00:00:00), the JDBC Test Step Request will return it with ".0" in the Response. Java returns it in a such format and ReadyAPI doesn't support formatting dates, taken from the DB.
As a workaround, you can write the desired format in the SQL Query, for example:
Select TO_CHAR(PATH, FORMAT)where PATH - SQL path to the field, which needs to be formatted
FORMAT - the needed date format, for example:'YYYY-MM-DD HH24:MI:SS'
- richie6 years agoCommunity Hero
Hi,
that will help skelander, because he's using Oracle - but sstevens didn't mention the RDBMS he's using.
If sstevens is using a different RDBMSs then this won't work will it?
if it's SQLServer you might have to use the CONVERT method or getDate or something like that.
Cheers,
richie
Related Content
- 8 years agorvteja1990
- 8 years agomgroen2