iti-ict / wakamiti

BDD testing tool using step libraries
https://iti-ict.github.io/wakamiti/
Mozilla Public License 2.0
33 stars 6 forks source link

Cannot select timestamp values #279

Closed mgalbis closed 1 month ago

mgalbis commented 2 months ago

When running a script, when selecting the inserted data, the timestamp columns in the as400 driver are not converted correctly. For example, when inserting:

INSERT INTO Test (ID, FEC) VALUES ('10', '2020-06-01 01:23:45');

And then do the select:

SELECT * FROM Test WHERE (
trim(ID) = '10'
AND trim(FEC) = '2020-06-01 01:23:45'
);

But it should be:

SELECT * FROM Test WHERE (
trim(ID) = '10'
AND FEC = timestamp '2020-06-01 01:23:45'
);