From: Pierangelo Masarati Date: Thu, 9 Jun 2005 09:45:02 +0000 (+0000) Subject: fix previous commit; document aliasing and aliasing quotes configuration X-Git-Tag: OPENLDAP_AC_BP~564 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94747a848929721e44ca110257c90e165936c876;p=openldap fix previous commit; document aliasing and aliasing quotes configuration --- diff --git a/doc/man/man5/slapd-sql.5 b/doc/man/man5/slapd-sql.5 index d1cc447354..924acae12a 100644 --- a/doc/man/man5/slapd-sql.5 +++ b/doc/man/man5/slapd-sql.5 @@ -207,7 +207,6 @@ is builtin in back-sql; see macro is set to 8192). This is \fIexperimental\fP and may change in future releases. -.TP .TP .B strcast_func Specifies the name of a function that converts a given value to a string @@ -216,6 +215,7 @@ for strongly typed RDBMSes with little implicit casting (like PostgreSQL), when a literal string is specified. This is \fIexperimental\fP and may change in future releases. +.TP .B concat_pattern This statement defines the .B pattern @@ -235,6 +235,17 @@ Carefully check the documentation of your RDBMS or stay with the examples for supported ones. This is \fIexperimental\fP and may change in future releases. +.TP +.B aliasing_keyword +Define the aliasing keyword. Some RDBMSes use the word "\fIAS\fP" +(the default), others don't use any. + +.TP +.B aliasing_quote +Define the quoting char of the aliasing keyword. Some RDBMSes +don't require any (the default), others may require single +or double quotes. + .TP .B has_ldapinfo_dn_ru { NO | yes } Explicitly inform the backend whether the dn_ru column diff --git a/servers/slapd/back-sql/config.c b/servers/slapd/back-sql/config.c index 700f8cc1ee..aa66ac02b7 100644 --- a/servers/slapd/back-sql/config.c +++ b/servers/slapd/back-sql/config.c @@ -591,12 +591,12 @@ backsql_db_config( BACKSQL_CHECK_SCHEMA( bi ) ? "yes" : "no", 0, 0 ); - } else if ( !strcasecmp( argv[ 0 ], "aliasing" ) ) { + } else if ( !strcasecmp( argv[ 0 ], "aliasing_keyword" ) ) { if ( argc != 2 ) { Debug( LDAP_DEBUG_TRACE, "<==backsql_db_config (%s line %d): " "missing arg " - "in \"aliasing \" directive\n", + "in \"aliasing_keyword \" directive\n", fname, lineno, 0 ); return 1; }