Code

* error feedback for function exec_statement
authorrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 May 2008 10:56:18 +0000 (10:56 +0000)
committerrettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 15 May 2008 10:56:18 +0000 (10:56 +0000)
* out commented
* to be tested

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10915 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/DBsqlite.pm

index 556b31ef7e96878077fe6793d4c0a0a73973aa3b..5421f099b5545dd18085dbc74c9bbdcb6a36e355 100644 (file)
@@ -290,6 +290,11 @@ sub exec_statement {
                        &main::daemon_log("ERROR: $sql_statement failed with $@", 1);
                }
        }
+       # TODO : maybe an error handling and an erro feedback to invoking function
+       #my $error = @$self->{dbh}->err;
+       #if ($error) {
+       #       my $error_string = @$self->{dbh}->errstr;
+       #}
 
     return \@db_answer;
 }