mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
05348c5fc5
- now all write operations appear to work correctly with PostgeSQL 7.0 - all write operations have been made transactional (atomic writes to entries are committed separately only in case of complete^1 success while all other operations are rolled-back by default) - more cleanup and handling of exceptional conditions TODO: - deen to check with different databases and more up to date versions of both unixODBC and PostgreSQL. ^1: attribute add/modify/delete operations silently succeed if the appropriate add/delete proc does not exist for each attribute; this may be correct to hide undesired/unimplemented correspondence between LDAP and SQL databases; however, a more appropriate LDAP behavior would be a failure with LDAP_UNAVAILABLE if a single write operation cannot be executed for such reason
18 lines
774 B
SQL
18 lines
774 B
SQL
insert into institutes (id,name) values (1,'sql');
|
|
|
|
insert into persons (id,name,surname) values (1,'Mitya','Kovalev');
|
|
insert into persons (id,name,surname) values (2,'Torvlobnor','Puzdoy');
|
|
insert into persons (id,name,surname) values (3,'Akakiy','Zinberstein');
|
|
|
|
insert into phones (id,phone,pers_id) values (1,'332-2334',1);
|
|
insert into phones (id,phone,pers_id) values (2,'222-3234',1);
|
|
insert into phones (id,phone,pers_id) values (3,'545-4563',2);
|
|
|
|
insert into documents (id,abstract,title) values (1,'abstract1','book1');
|
|
insert into documents (id,abstract,title) values (2,'abstract2','book2');
|
|
|
|
insert into authors_docs (pers_id,doc_id) values (1,1);
|
|
insert into authors_docs (pers_id,doc_id) values (1,2);
|
|
insert into authors_docs (pers_id,doc_id) values (2,1);
|
|
|