1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 15:45:56 +00:00

code cleanup, test for db_escape() crazyness in DB sanity check

This commit is contained in:
Andrew Dolgov
2008-11-10 06:29:19 +01:00
parent d2bf48f90a
commit f29ba1484f
12 changed files with 30 additions and 95 deletions

View File

@@ -113,7 +113,6 @@
db_close($link);
while (true) {
// Since sleep is interupted by SIGCHLD, we need another way to
@@ -155,15 +154,7 @@
return;
}
if (DB_TYPE == "pgsql") {
pg_query("set client_encoding = 'utf-8'");
pg_set_client_encoding("UNICODE");
} else {
if (defined('MYSQL_CHARSET') && MYSQL_CHARSET) {
db_query($link, "SET NAMES " . MYSQL_CHARSET);
// db_query($link, "SET CHARACTER SET " . MYSQL_CHARSET);
}
}
init_connection($link);
// We disable stamp file, since it is of no use in a multiprocess update.
// not really, tho for the time being -fox