/[virtual-ldap]/lib/LDAP/Koha.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/LDAP/Koha.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 86 by dpavlin, Thu Feb 18 16:24:58 2010 UTC revision 87 by dpavlin, Mon Apr 19 13:48:35 2010 UTC
# Line 39  $SIG{__DIE__} = sub { Line 39  $SIG{__DIE__} = sub {
39    
40  require 'config.pl' if -e 'config.pl';  require 'config.pl' if -e 'config.pl';
41    
 my $dbh = DBI->connect($dsn . $database, $user,$passwd, { RaiseError => 1, AutoCommit => 1 }) || die $DBI::errstr;  
   
42  # we need reverse LDAP -> SQL mapping for where clause  # we need reverse LDAP -> SQL mapping for where clause
43    
44  my $ldap_sql_mapping = {  my $ldap_sql_mapping = {
# Line 208  sub search { Line 206  sub search {
206                          ;                          ;
207    
208                  warn "# SQL:\n$sql\n# DATA: ",dump( @values );                  warn "# SQL:\n$sql\n# DATA: ",dump( @values );
209                    my $dbh = DBI->connect_cached($dsn . $database, $user,$passwd, { RaiseError => 1, AutoCommit => 1 }) || die $DBI::errstr;
210                  my $sth = $dbh->prepare( $sql );                  my $sth = $dbh->prepare( $sql );
211                  $sth->execute( @values );                  $sth->execute( @values );
212    

Legend:
Removed from v.86  
changed lines
  Added in v.87

  ViewVC Help
Powered by ViewVC 1.1.26