Skip to content

Commit a29263e

Browse files
hjbothstewskbugwelle
authored
hard coded vs usr defined strlength (#1017)
* hard coded vs usr defined strlength ... make foot note clearer * Update cds/types.md Co-authored-by: Andre Meyering <andre.meyering@sap.com> --------- Co-authored-by: Steffen Weinstock <79531202+stewsk@users.noreply.github.com> Co-authored-by: Andre Meyering <andre.meyering@sap.com>
1 parent 246f7a8 commit a29263e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cds/types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ The following built-in types are provided:
4747
4848
> <sup>(4)</sup> Up to 7 digits of fractional seconds; if a data is given with higher precision truncation may occur
4949
50-
> <sup>(5)</sup> Argument `length` is optional → use options `cds.cdsc.defaultStringLength` and `cds.cdsc.defaultBinaryLength` to control the project-specific default length used for OData and SQL backends. The default length is 5000 for SAP HANA and 255 for all other SQL backends. Note that default lengths are only applied on database level. Specify fixed lengths to get length checks on service level and/or inbound data.
50+
> <sup>(5)</sup> Argument `length` is optional → use options `cds.cdsc.defaultStringLength` and `cds.cdsc.defaultBinaryLength` to control the project-specific default length used for OData and SQL backends. If no option is specified, a hard-coded default length of 5000 for SAP HANA and 255 for all other SQL backends applies. Note that these hard-coded default lengths are only applied on database level. Specify fixed lengths to get length checks on service level and/or inbound data.
5151
5252
> <sup>(6)</sup> Mapping to ANSI SQL types are given for comparison. Note though, that you need to have the specification of your target database in mind when considering, for example, length restrictions.
5353

0 commit comments

Comments
 (0)