Commit 02af2b2b authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 432931: [Oracle] Saved Searches that search multi-byte characters return empty results

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=xiaoou, a=mkanat
parent 0547231e
......@@ -253,6 +253,12 @@ sub LookupNamedQuery {
WHERE userid = ? AND name = ?
$extra",
undef, @args);
# Some DBs (read: Oracle) incorrectly mark this string as UTF-8
# even though it has no UTF-8 characters in it, which prevents
# Bugzilla::CGI from later reading it correctly.
utf8::downgrade($result) if utf8::is_utf8($result);
if (!defined($result)) {
return 0 unless $throw_error;
ThrowUserError("missing_query", {'queryname' => $name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment