summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 33264ae)
raw | patch | inline | side by side (parent: 33264ae)
author | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 18 Apr 2008 12:48:53 +0000 (12:48 +0000) | ||
committer | rettenbe <rettenbe@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 18 Apr 2008 12:48:53 +0000 (12:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10558 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server
index fce69ae0b419ea4a2c78cf35e37e6d21cdb3b89e..e900c5b3849f0ee10883f79c29d3ecb0b648db68 100755 (executable)
--- a/gosa-si/gosa-si-server
+++ b/gosa-si/gosa-si-server
if ( 0 < @{$answer_l} ) {
my $answer_str = join("\n", @{$answer_l});
daemon_log("$session_id DEBUG: $module: Got answer from module: \n".$answer_str,8);
+ } else {
+ daemon_log("$session_id DEBUG: $module: Got no answer from module!" ,8);
}
+
}
if( !$answer_l ) { $error++ };
my $message_to = @{$hit}[3];
# translate message_to to plain login name
+# TODO implement reciever translation
my @reciever_l = ($message_to);
my $message_id = @{$hit}[0];
daemon_log("$session_id DEBUG: Inserting ".scalar @sql_list." entries to DB",8);
if(@sql_list) {
- unshift @sql_list, "DELETE FROM $table_name";
+ unshift @sql_list, "DELETE FROM $table_name"; # at first, clear db
$fai_release_db->exec_statementlist(\@sql_list);
}
daemon_log("$session_id DEBUG: Done with inserting",6);
index 2b260dac148b7a28bc586f5b7fa402264971d12b..10472f00b039d993ac4541e53383e505ed2413b4 100644 (file)
my $col_names_ref = shift;
my $col_names_string = join(", ", @{$col_names_ref});
my $sql_statement = "CREATE TABLE IF NOT EXISTS $table_name ($col_names_string )";
-
- $self->{dbh}->do($sql_statement);
+ my $res = $self->{dbh}->do($sql_statement);
return 0;
}
my $sql_list = shift;
my @db_answer;
+ $self->{dbh}->do("ANALYZE");
foreach my $sql (@$sql_list) {
@db_answer = @{$self->{dbh}->selectall_arrayref($sql)};
}
index 8e521749b0a5406ecc3a5e9e9f32791d6a54154f..bb4828eea566963e833bacfcb49c4807b394bbb6 100644 (file)
my $res = $main::job_db->exec_statement($sql_statement);
}
- $main::fai_server_db->create_table("new_fai_release", \@main::fai_release_col_names);
+ $main::fai_release_db->create_table("new_fai_release", \@main::fai_release_col_names);
&main::create_fai_release_db("new_fai_release", $session_id);
- $main::fai_server_db->move_table("new_fai_release", $main::fai_release_tn);
+ $main::fai_release_db->move_table("new_fai_release", $main::fai_release_tn);
my @out_msg_l = ( $out_msg );
return @out_msg_l;
index cc9e1b31e41bbb59e967f3161ea3622dfc101d7b..1c40df4f612827feb717d016a8a97099730800ad 100755 (executable)
--- a/gosa-si/tests/client.php
+++ b/gosa-si/tests/client.php
##################
# recreate fai dbs
#$data = "<xml> <header>gosa_recreate_fai_server_db</header> <target>GOSA</target> <source>GOSA</source></xml>";
-#$data = "<xml> <header>gosa_recreate_fai_release_db</header> <target>GOSA</target> <source>GOSA</source></xml>";
+$data = "<xml> <header>gosa_recreate_fai_release_db</header> <target>GOSA</target> <source>GOSA</source></xml>";
#$data = "<xml> <header>gosa_recreate_packages_list_db</header> <target>GOSA</target> <source>GOSA</source></xml>";
###########
# messaging
-$data = "<xml> <header>gosa_send_user_msg</header> <target>GOSA</target> <source>GOSA</source> <subject>eine wichtige nachricht</subject> <from>me</from> <to>you</to> <delivery_time>20130101235959</delivery_time> <message>kaffeepause</message> </xml>";
+#$data = "<xml> <header>gosa_send_user_msg</header> <target>GOSA</target> <source>GOSA</source> <subject>eine wichtige nachricht</subject> <from>admin</from> <to>rettenbe</to> <delivery_time>20130101235959</delivery_time> <message>kaffeepause</message> </xml>";
################