From f692c1091f5839ee66cb8132b19649c04dc264e4 Mon Sep 17 00:00:00 2001 From: samyuktaprabhu <33195453+samyuktaprabhu@users.noreply.github.com> Date: Wed, 22 Apr 2026 10:51:12 +0200 Subject: [PATCH 1/2] update SQLLite Limitation --- java/cqn-services/persistence-services.md | 1 + 1 file changed, 1 insertion(+) diff --git a/java/cqn-services/persistence-services.md b/java/cqn-services/persistence-services.md index b456b004d..c7faf7277 100644 --- a/java/cqn-services/persistence-services.md +++ b/java/cqn-services/persistence-services.md @@ -80,6 +80,7 @@ CAP does support most of the major features on SQLite, although there are a few 6. Views in SQLite are read-only. However, the CAP Java SDK supports some views to be updatable as described in [Updatable Views](../working-with-cql/query-execution#updatable-views). 7. Foreign key constraints are supported, but are disabled by default. To activate the feature using JDBC URL, append the `foreign_keys=on` parameter to the connection URL, for example, `url=jdbc:sqlite:file:testDb?mode=memory&foreign_keys=on`. For more information, visit the [SQLite Foreign Key Support](https://sqlite.org/foreignkeys.html) in the official documentation. 8. CAP enables regular expressions on SQLite via a Java implementation. The matching behaviour is an equivalent of the `Matcher.find()` call for the given pattern. +9. `Decimal` values are stored as IEEE 754 double-precision floating-point numbers on SQLite. This allows arithmetic operations directly in the database, but may result in precision loss for values that cannot be represented exactly in binary floating-point. ## Datasources From 78a1f236dc7d9bc7f2b774cb6c039ff776b6a57e Mon Sep 17 00:00:00 2001 From: Mahati Shankar <93712176+smahati@users.noreply.github.com> Date: Tue, 28 Apr 2026 14:04:33 +0200 Subject: [PATCH 2/2] cosmetics --- java/cqn-services/persistence-services.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/cqn-services/persistence-services.md b/java/cqn-services/persistence-services.md index c7faf7277..cc060a5de 100644 --- a/java/cqn-services/persistence-services.md +++ b/java/cqn-services/persistence-services.md @@ -80,7 +80,7 @@ CAP does support most of the major features on SQLite, although there are a few 6. Views in SQLite are read-only. However, the CAP Java SDK supports some views to be updatable as described in [Updatable Views](../working-with-cql/query-execution#updatable-views). 7. Foreign key constraints are supported, but are disabled by default. To activate the feature using JDBC URL, append the `foreign_keys=on` parameter to the connection URL, for example, `url=jdbc:sqlite:file:testDb?mode=memory&foreign_keys=on`. For more information, visit the [SQLite Foreign Key Support](https://sqlite.org/foreignkeys.html) in the official documentation. 8. CAP enables regular expressions on SQLite via a Java implementation. The matching behaviour is an equivalent of the `Matcher.find()` call for the given pattern. -9. `Decimal` values are stored as IEEE 754 double-precision floating-point numbers on SQLite. This allows arithmetic operations directly in the database, but may result in precision loss for values that cannot be represented exactly in binary floating-point. +9. `Decimal` values are stored as IEEE 754 double-precision floating-point numbers on SQLite which allows arithmetic operations to be performed directly in the database. Note, when values can't be represented exactly in this binary floating-point format, they lose some precision. ## Datasources