Commit Graph

8 Commits

Author SHA1 Message Date
anisimko
ddc9b79617 ORM generation compartible with python3
T623-002

Change-Id: If7ac0079a092eeb0eef5eb5a07709362f3420f32
2020-07-06 19:37:14 +06:00
anisimko
767216d0e0 Fix sqlite2db issues
* sql/gnatcoll-sql-inspect.adb (Type_From_SQL):
For Field_Mapping_Integer does not interpret 'numeric' without precision and
scale as Integer. Add decimal type processing.
For Field_Mapping_Float interpret 'decimal' and 'numeric' without precision
and scale as Float.

* sqlite/gnatcoll-sql-sqlite-builder.adb (Foreach_Field):
Ignore square brackets in field names. Fix parsing numeric with position and
scale.

* testsuite/tests/db2ada/chinook/*
Testsuite with public database example.

TN: T627-001
Change-Id: I38843e0c1b6be144d19b9f2e7ed118c2bf44e070
2020-06-30 08:02:57 +06:00
anisimko
7a8d0cf9eb Nanosecond timestamp precision for SQLite
T610-033

SQLite support nanosecond precision for timestamp.
Testsuite for SQLite subseconds.

Change-Id: Ifcf5c3d2dceb6c17153860d8d3c9a95975b837c5
2020-06-12 23:29:37 +06:00
anisimko
1c9f4b7f94 Support subseconds in timestamp
T610-033

Use GNAT.Calendar.Time_IO.Image instead of Ada.Calendar.Formatting.Image
because it has better precision on subseconds.

Change-Id: I56236d55a76d208cbd611f2eb93036a98dfec830
Depend-On: I08b4190cd89284c1fc5626b80742aafc26a01175
2020-06-11 19:16:57 +06:00
Nicolas Roche
d32516a5da Add tests for enum image
Part of R601-023

Change-Id: Id7e37273c41ed91b11251ef95bfa71e1595eca53
2018-06-27 10:59:20 +02:00
Dmitriy Anisimkov
464cac567b Add test for SQL_Field.List Is_Empty and Length routines.
Change-Id: Ic6bfcc470d5b5bbdc2a281f4899d681983367425
2018-06-06 09:36:13 +06:00
Dmitriy Anisimkov
1e799bb0d6 Add sql1 test
Change-Id: If8197da62510d599b8c71069a282002fb128b76a
2018-06-05 21:43:46 +02:00
Nicolas Roche
25cef864f9 Add basic testing framework for gnatcoll-db
Change-Id: I23b625c09c96e6dda62278d55ea0478643969173
2018-05-23 11:54:35 -04:00