From a6a670f180b91e29b5dda5874aab01920dca929a Mon Sep 17 00:00:00 2001 From: Steffen Weinstock <79531202+stewsk@users.noreply.github.com> Date: Mon, 1 Jun 2026 16:07:42 +0200 Subject: [PATCH 1/2] CDS to DDL: clarify treatment of expressions --- guides/databases/cdl-to-ddl.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guides/databases/cdl-to-ddl.md b/guides/databases/cdl-to-ddl.md index 2c3f186e1..d58fc0718 100644 --- a/guides/databases/cdl-to-ddl.md +++ b/guides/databases/cdl-to-ddl.md @@ -60,6 +60,11 @@ code --diff _out/c/sqlite.sql _out/c/h2.sql > [!tip] CDS models are database-agnostic > CDS models are designed to be database-agnostic, allowing you to switch between different databases with minimal changes. The `--dialect` option helps you see how your models translate to different database-specific DDLs. \ +Note that expressions in CDS models are _not_ treated in a database-agnostic way. In other words, they are not rewritten +into database-specific equivalents; instead, they are carried over one-to-one into the DDL. +You therefore need to ensure that any expression you write in your CDS model works across all databases you use. +See also [Database-Specific Models](#database-specific-models). + ### Dialects by `cds env` Profiles From b6b3635f57dd8c4935aec7acb7fca29fee21be37 Mon Sep 17 00:00:00 2001 From: Steffen Weinstock <79531202+stewsk@users.noreply.github.com> Date: Tue, 2 Jun 2026 10:11:18 +0200 Subject: [PATCH 2/2] Update guides/databases/cdl-to-ddl.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: René Jeglinsky --- guides/databases/cdl-to-ddl.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/guides/databases/cdl-to-ddl.md b/guides/databases/cdl-to-ddl.md index d58fc0718..40d823e37 100644 --- a/guides/databases/cdl-to-ddl.md +++ b/guides/databases/cdl-to-ddl.md @@ -60,10 +60,7 @@ code --diff _out/c/sqlite.sql _out/c/h2.sql > [!tip] CDS models are database-agnostic > CDS models are designed to be database-agnostic, allowing you to switch between different databases with minimal changes. The `--dialect` option helps you see how your models translate to different database-specific DDLs. \ -Note that expressions in CDS models are _not_ treated in a database-agnostic way. In other words, they are not rewritten -into database-specific equivalents; instead, they are carried over one-to-one into the DDL. -You therefore need to ensure that any expression you write in your CDS model works across all databases you use. -See also [Database-Specific Models](#database-specific-models). +Expressions in CDS models are _not_ treated in a database-agnostic way. The compiler does not rewrite them into database-specific equivalents. Instead, it carries them over directly into the DDL. Ensure that any expression you write in your CDS model works across all databases you use. For more information, see [Database-Specific Models](#database-specific-models). ### Dialects by `cds env` Profiles