mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 15:49:34 -05:00
- filter -> SQL translation bugfixes
- several memory leaks fixups
- improved configurability:
- allows definition of uppercasing function to support CIS matching on databases that do
case sensitive compares (this fixes up Oracle issues, example updated)
- allows more flexibility in stored procedures interface (different parameter order, optional return
codes - see samples, and comments in backsql.h)
- synchronize function interfaces to recent changes in prototypes ("const" clauses etc.) made for all backends
(those changes led to compile-time errors)
43 lines
2.8 KiB
SQL
43 lines
2.8 KiB
SQL
insert into ldap_objclasses (id,name,keytbl,keycol,create_proc,delete_proc,expect_return)
|
|
values (1,'person','persons','id',"insert into persons (name) values ('');\n select last_insert_id();",NULL,0);
|
|
|
|
insert into ldap_objclasses (id,name,keytbl,keycol,create_proc,delete_proc,expect_return)
|
|
values (2,'document','documents','id',NULL,NULL,0);
|
|
|
|
insert into ldap_objclasses (id,name,keytbl,keycol,create_proc,delete_proc,expect_return)
|
|
values (3,'organization','institutes','id',NULL,NULL,0);
|
|
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (1,1,'cn','persons.name','persons',NULL,NULL,NULL,NULL,3,0);
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (2,1,'telephoneNumber','phones.phone','persons,phones',
|
|
'phones.pers_id=persons.id',NULL,NULL,NULL,3,0);
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (3,1,'sn','persons.name','persons',NULL,NULL,NULL,NULL,3,0);
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (4,2,'abstract','documents.abstract','documents',NULL,NULL,NULL,NULL,3,0);
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (5,2,'documentTitle','documents.title','documents',NULL,NULL,NULL,NULL,3,0);
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (6,2,'documentAuthor','persons.name','persons,documents,authors_docs',
|
|
'persons.id=authors_docs.pers_id AND documents.id=authors_docs.doc_id',
|
|
NULL,NULL,NULL,3,0);
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (7,3,'o','institutes.name','institutes',NULL,NULL,NULL,NULL,3,0);
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (8,1,'documentDN','ldap_entries.dn','ldap_entries,documents,authors_docs,persons',
|
|
'ldap_entries.keyval=documents.id AND ldap_entries.objclass=2 AND authors_docs.doc_id=documents.id AND authors_docs.pers_id=persons.id',
|
|
NULL,NULL,NULL,3,0);
|
|
|
|
insert into ldap_attrs (id,oc_id,name,sel_expr,from_tbls,join_where,add_proc,modify_proc,delete_proc,param_order,expect_return)
|
|
values (9,2,'authorDN','ldap_entries.dn','ldap_entries,documents,authors_docs,persons',
|
|
'ldap_entries.keyval=persons.id AND ldap_entries.objclass=1 AND authors_docs.doc_id=documents.id AND authors_docs.pers_id=persons.id',
|
|
NULL,NULL,NULL,3,0);
|