Files
libreoffice/connectivity/registry
Julien Nabet 6de679cca6 Fix some drivers xcu (connectivity/registry)
1) Revert partly 5687788744
UseKeywordAsBeforeAlias should be put to true in Features section
(see https://gerrit.libreoffice.org/#/c/61144/)

2) Fix BooleanComparisonMode
Use xs:int for Properties part but stay with xs:boolean in Features
(see https://gerrit.libreoffice.org/#/c/61144/ again)

Change-Id: I4397327ceef408be9ee0563f25fe700c1bfd82d3
TODO: add README in connectivity/registry to provide some info
Reviewed-on: https://gerrit.libreoffice.org/61271
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2018-10-03 07:03:13 +02:00
..

xcu files are made from several sections, the main ones are: Properties and Features

Property: actual setting with its underlying type and its default value

Feature: a boolean that says "let the user change that setting in the Advanced Settings UI"

This is checked by using officecfg/registry/schema/org/openoffice/Office/DataAccess/Drivers.xcs
and configmgr mechanism
There are two kinds of properties named "Value":
- first one is in "Property" groups and has a static oor:type="any" (can take on boolean, int and other types of values)
- second one is in "Feature" groups and has a static oor:type="boolean" so can take on only boolean values.

Each node in Feature section must have an equivalent in Property section
Most of the time the node name of both sections should be equal,
however there are 4 known exceptions (more?):
- "UseBracketedOuterJoinSyntax" feature => "EnableOuterJoinEscape" property
- "UseDOSLineEnds" feature => "PreferDosLikeLineEnds" property
- "UseSQL92NamingConstraints" feature => "EnableSQL92Check" property
- "UseKeywordAsBeforeAlias" feature => "GenerateASBeforeCorrelationName"

See dbaccess/source/ui/dlg/DbAdminImpl.cxx, ODbDataSourceAdministrationHelper constructor, eg:
m_aIndirectPropTranslator.emplace( <ID>, <property> )
and dbaccess/source/ui/misc/dsmeta.cxx, lcl_getFeatureMappings() function, eg:
{ <ID>, <feature> }