Commit Graph

2858 Commits

Author SHA1 Message Date
Nicolas Boulenguez
05ec5ccb9c docs/conf.py: close the version information file 2021-10-25 18:07:44 +02:00
Vadim Godunko
78596d3bf3 U917-009 Use char_array instead of Standard.String...
... to avoid use of secondary stack for string conversion.

Change-Id: Id7a6a8b124217bcbd87713e7547ce54d009c6a09
2021-10-06 10:33:43 +02:00
Vadim Godunko
b3ab13b58f U917-009 Add test.
Change-Id: I01afd85367c8e5dbc053f0714c6302bd85c72cba
2021-09-20 18:56:26 +02:00
Vadim Godunko
0d8088c9e4 U917-009 Bind RelationNameGetTupleDesc function.
Change-Id: Ibd11a94161a9f1756926dfa4b288cfb01f96179e
2021-09-20 18:56:11 +02:00
Vadim Godunko
5966112703 U917-009 Fix build with current compiler.
Change-Id: I241d2d8d25919df72dfad7c8a4a2afffe69aabe7
2021-09-20 16:03:46 +03:00
Vadim Godunko
e98b78c158 U917-009 Cleanup context clauses.
Change-Id: Iac773fad85482887c88f6c529e39f33a2c4ab55b
2021-09-20 16:03:43 +03:00
anisimko
c75234037f Remove GNAT bug OB03-009 workaround
GNAT Community 2021 does not have this defect already.

TN: U430-004
Change-Id: Ib10b9d209a866daae7eb684f08a79b26d774dc83
2021-06-20 10:00:20 +06:00
Philippe Gil
447297292c minor refactoring to workaround accessibility checks bug.
TN:U430-004
Change-Id: Ib12c81f1c0e555c71d33c05fba3b023e3c514153
2021-05-01 18:36:20 +02:00
Fedor Rybin
33b963c5e4 Make GNATCOLL.SQL Ada 2020 compatible
Qualify the aggregate to fix compilation error in 2020 mode.

for U121-029

Change-Id: I57c0696eb01ca2ab32106c6760099a402e41910d
2021-01-22 11:22:55 +03:00
anisimko
9dadb68f7d GNATCOLL.SQL example
U108-018

Change-Id: Ic2be45cd8fa8457416129c1d0f09720d01a49a97
2021-01-10 16:40:35 +06:00
Dimitri Kokkonis
a8e1615821 Migrate to Sphinx 3.2 and Python 3. T421-010
Change-Id: I6c2a665225e713c9fbecc65014d5ad6bd2b8c68a
2020-12-08 17:17:14 +01:00
anisimko
0819d68de5 Remove unused package references
no-tn-check

GNAT style check became more strict.

Change-Id: I24b59f7b3ffdfa58d8a54b3ede6bfa56fbdcc46d
2020-09-14 11:12:41 +06:00
Fabien Chouteau
5bdd20ae4d gnatcoll_*.gpr: rename external GNATCOLL_BUILD into GNATCOLL_BUILD_MODE
To avoid conflict with installed gnatcoll.gpr where GNATCOLL_BUILD means
library type.

Part of S709-037.

Change-Id: I372b3fc7b35faf14a223465069968ff1e5550250
2020-09-10 18:42:36 +02:00
Fabien Chouteau
d9a2231ff0 gnatcoll_*.gpr: rename all external GNATCOLL_*_BUILD into GNATCOLL_BUILD
To have a unified external for all GNATCOLL project, as discussed for
gnatcoll-db.

Part of S709-037.

Change-Id: I5b6c843df6926288b8906a8c285a6d682394d7bf
2020-08-26 18:38:05 +02:00
Fabien Chouteau
b3a055d835 gnatcoll_*.gpr: introduce the GNATCOLL_*_BUILD external
Like for gnatcoll_core, these externals allow gnatcoll_*.gpr to be used
from a project that defines the BUILD external in an incompatible way.

Part of S709-037.

Change-Id: Ib69453688c4c3ea112aa8b00d3a610bdc2f5426f
2020-07-27 16:56:56 +02:00
Fabien Chouteau
750379af7b gnatcoll_{postgres2ada|postgres|xref}.gpr: unifiy default value for BUILD
Part of T717-016.

Change-Id: Iacf0b56f7c6c1ab4670c8fc5f0fd36963b41dce3
2020-07-17 16:46:39 +02:00
Fabien Chouteau
afd3bbfb2f gnatcoll.gpr_{postgres|sql|sqlite|xref}: set default LIBRARY_TYPE
Part of T717-016.

Change-Id: Idd60944d984b2cf9c05759a87cd4b4bb8cc8e8b4
2020-07-17 16:46:32 +02:00
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
37cda9383c Fixes in database schema processing
* gnatcoll-sql-inspect.ads (Type_From_SQL):
Considers datetime as Field_Mapping_Timestamp.

* gnatcoll-sql-inspect.adb (Type_From_SQL):
Considers nvarchar as Field_Mapping_Text.
Parsing max length moved into separated routine Process Max_Length.

* sqlite/gnatcoll-sql-sqlite-builder.adb
(Foreach_Table): Fix SQL request over database tables. Takes only
tables and views from the sqlite_master and does not take service
SQLite tables.
(Foreach_Field): Do not interpret as field the FOREIGN/UNIQUE KEY
element in CREATE TABLE statement.

TN: T627-001
Change-Id: Ibb6ca6c6a67489bbe569c0c0b1aed2e5a9cd4b34
2020-06-27 15:54:18 +02:00
Vadim Godunko
59a249cd93 SC06-078 Substitute path to server's header files.
Change-Id: If4040bafe41d3a4614532bb8e408acdbc90a0857
2020-06-23 13:09:21 +03:00
Vadim Godunko
fa0ae5623d SC06-078 Separate molithic module onto example and test parts.
Change-Id: I9cd461d86fb9a024818658c63f63bcc9cd94ebea
2020-06-23 13:09:14 +03:00
Vadim Godunko
3f0ea34d76 SC06-078 List all packages of the binding in Library_Interface.
Change-Id: I67ee4d9dbececd9486f560f0f8fd5f02f0a9a05d
2020-06-23 11:55:39 +02:00
Vadim Godunko
0911d4978c SC06-078 Fix formatting on Github
Change-Id: Ia552db073cfd491d411c09bfd6e4b9ff8b3d2482
2020-06-22 06:49:09 +02: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