summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d924450)
raw | patch | inline | side by side (parent: d924450)
author | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 Mar 2009 11:14:21 +0000 (11:14 +0000) | ||
committer | janw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 12 Mar 2009 11:14:21 +0000 (11:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13537 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-si/modules/DBsqlite.pm | patch | blob | history |
index f4e442e41e6a66ffd795b6d6c42a1ac3a8569310..c0406c95fc38ebf738853712381822b691096cf5 100644 (file)
my $success=0;
$self->lock();
eval {
- my $sth = $self->{dbh}->prepare_cached($sql_statement);
+ my $sth = $self->{dbh}->prepare($sql_statement);
$db_res = $sth->execute();
$sth->finish();
&main::daemon_log("0 DEBUG: Execution of statement '$sql_statement' succeeded!", 7);
}
if($success==0) {
eval {
- my $sth = $self->{dbh}->prepare_cached($sql_statement);
+ my $sth = $self->{dbh}->prepare($sql_statement);
$db_res = $sth->execute();
$sth->finish();
&main::daemon_log("0 DEBUG: Execution of statement '$sql_statement' succeeded!", 7);
}
if($success==0) {
eval {
- my $sth = $self->{dbh}->prepare_cached($sql_statement);
+ my $sth = $self->{dbh}->prepare($sql_statement);
$db_res = $sth->execute();
$sth->finish();
&main::daemon_log("0 DEBUG: Execution of statement '$sql_statement' succeeded!", 7);
# Give three chances to the sqlite database
# 1st chance
eval {
- my $sth = $self->{dbh}->prepare_cached($sql_statement);
+ my $sth = $self->{dbh}->prepare($sql_statement);
my $res = $sth->execute();
@db_answer = @{$sth->fetchall_arrayref()};
$sth->finish();
# 2nd chance
eval {
DBI->trace(2) if($main::verbose >= 7);
- my $sth = $self->{dbh}->prepare_cached($sql_statement);
+ my $sth = $self->{dbh}->prepare($sql_statement);
my $res = $sth->execute();
@db_answer = @{$sth->fetchall_arrayref()};
$sth->finish();
# 3rd chance
eval {
DBI->trace(2) if($main::verbose >= 7);
- my $sth = $self->{dbh}->prepare_cached($sql_statement);
+ my $sth = $self->{dbh}->prepare($sql_statement);
my $res = $sth->execute();
@db_answer = @{$sth->fetchall_arrayref()};
$sth->finish();