[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: back-sql Varchar2 Primary Key Support
- To: openldap-software@openldap.org
- Subject: Re: back-sql Varchar2 Primary Key Support
- From: "deckrider@gmail.com" <deckrider@gmail.com>
- Date: Fri, 8 May 2009 07:27:49 -0600
- Content-disposition: inline
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition :content-transfer-encoding:user-agent; bh=jan4QjZJD/v4nYzKv9EN5ptycxcJZbElybzVb8rDi9Y=; b=abGZL0pWMdVwj8RHs3bHu7D99I4xvuQN9LBUatrdiSqXh2W6ffEAD7OyA/IJPRcQ50 PSIwrn/ObkAh4CSdhbBc+edmceq5vkmwefL6R1ru4Wzzg3++9M4lo61luQ59SObJ3alX ZkOdHvqnDUwzrjLeQVTtr+mwefyBOanSMNmtk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:content-transfer-encoding:user-agent; b=Fstu0pCoUQtMxBpRuCx8HmeOO7faj3IxSAaMITz3cnM5ED6bFIFsPG/kxduWoVQse3 Tun6BjNITYE92vVK3Ex4/4WcW/ikSLUOurqweZZW6WBCH9x17JHBteieDewG1MQoSoWK II2GnjkpJKemam9mnmL0kDPpmn7V2MrqFMvJQ=
- User-agent: Mutt/1.5.18 (2008-05-17)
Pierangelo Masarati wrote:
> > King, Leon C wrote:
> >
> > Hi all,
> >
> > Is there a way to wrap oracle functions to where clauses passed
> > into back-sql? I have a non-numeric primary key value of my
> > users' table which in some cases is preceeded by a '0'. None of
> > the data mapped via the ldap_entries.keyval and my table are
> > being retrieve when I execute an ldap search. If I remove the
> > preceeding '0' the values are retrieved.
>
> Manually edit servers/slapd/back-sql/back-sql.h and #define
> BACKSQL_ARBITRARY_KEY (it's #undef'd right now). This allows to use
> arbitrary keys (treated as strings) instead of integers. Note: it's not
> very well tested, and performances obviously may decrease (lots of
> mallocs/frees, more demanding comparisons and so).\
I need this also, but get a compile time error:
servers/slapd/back-sql/search.c:2420: error: invalid operands to binary
<< (have ‘struct berval’ and ‘int’)