X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2Fdb_mysql.pl;h=325069d98fb2e7f7b7b1bb76f4062b95aaab547b;hb=34a4d11667b0a734343f82d2adbaac23f738ad18;hp=357f4a894938621bf5d4a6355f40285eac5cb392;hpb=92c3870d1fd6aa5f063a57cfb690aea12ec77df7;p=infobot.git diff --git a/src/db_mysql.pl b/src/db_mysql.pl index 357f4a8..325069d 100644 --- a/src/db_mysql.pl +++ b/src/db_mysql.pl @@ -46,7 +46,7 @@ sub dbQuote { # Usage: &dbGet($table, $select, $where); sub dbGet { my ($table, $select, $where) = @_; - my $query = "SELECT $select FROM $table"; + my $query = "SELECT $select FROM $table"; $query .= " WHERE $where" if ($where); if (!defined $select) { @@ -463,7 +463,7 @@ sub searchTable { ##### ##### -# Usage: &getFactInfo($faqtoid, type); +# Usage: &getFactInfo($faqtoid, $type); # Note: getFactInfo does dbQuote sub getFactInfo { return &dbGet("factoids", $_[1], "factoid_key=".&dbQuote($_[0]) ); @@ -486,14 +486,6 @@ sub delFactoid { return 1; } -sub SQLDebug { - return unless (&IsParam("SQLDebug")); - - return unless (fileno SQLDEBUG); - - print SQLDEBUG $_[0]."\n"; -} - sub dbCreateTable { my($table) = @_; my(@path) = (".","..","../..");