From 94747a848929721e44ca110257c90e165936c876 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 9 Jun 2005 09:45:02 +0000 Subject: [PATCH] fix previous commit; document aliasing and aliasing quotes configuration --- doc/man/man5/slapd-sql.5 | 13 ++++++++++++- servers/slapd/back-sql/config.c | 4 ++-- 2 files changed, 14 insertions(+), 3 deletions(-) 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; } -- 2.39.5