Jmsg(jcr, M_ERROR, 0, "Can't check database encoding %s", mdb->errmsg);
} else {
ret = bstrcmp(row[0], "SQL_ASCII");
- if (!ret) {
+
+ if (ret) {
+ /* if we are in SQL_ASCII, we can force the client_encoding to SQL_ASCII too */
+ db_sql_query(mdb, "SET client_encoding TO 'SQL_ASCII'", NULL, NULL);
+
+ } else { /* something is wrong with database encoding */
Mmsg(mdb->errmsg,
_("Encoding error for database \"%s\". Wanted SQL_ASCII, got %s\n"),
mdb->db_name, row[0]);
15Jul09
kes Fix Win64 build
kes Add more example SD Device configurations.
+ebl Force the client_encoding to SQL_ASCII when database is already
+ using this mode.
ebl Fix #1335 about postgresql error message during copy session
ebl Cleanup old job records when starting the director
(Created/Running -> Failed)
-ebl Force the client_encoding to SQL_ASCII when database is already
- using this mode.
14Jul09
kes Tweak debug print in accurate
kes Apply patch in bug #1315 by McMichaeli that fixes scripts/logwatch