summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorSreeharsha Ramanavarapu <sreeharsha.ramanavarapu@oracle.com>2015-07-10 07:52:00 +0530
committerSreeharsha Ramanavarapu <sreeharsha.ramanavarapu@oracle.com>2015-07-10 07:52:00 +0530
commit33a2e5abd86727155b629246445d508bb2cd02c0 (patch)
treeab6748eb9bb0ef8338ba3843e3b30f93f81fceeb /sql/sql_yacc.yy
parent8f87d6cd41042fe931305a60718d6aa1015a9ccc (diff)
downloadmariadb-git-33a2e5abd86727155b629246445d508bb2cd02c0.tar.gz
Bug #20238729: ILLEGALLY CRAFTED UTF8 SELECT PROVIDES NO
WARNINGS Backporting to 5.1 and 5.5
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy10
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index 29516d34855..d9a32f2dd35 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -11070,7 +11070,9 @@ literal:
str ? str->length() : 0,
$1);
if (!item_str ||
- !item_str->check_well_formed_result(&item_str->str_value, TRUE))
+ !item_str->check_well_formed_result(&item_str->str_value,
+ true, //send error
+ true)) //truncate
{
MYSQL_YYABORT;
}
@@ -11099,7 +11101,9 @@ literal:
str ? str->length() : 0,
$1);
if (!item_str ||
- !item_str->check_well_formed_result(&item_str->str_value, TRUE))
+ !item_str->check_well_formed_result(&item_str->str_value,
+ true, //send error
+ true)) //truncate
{
MYSQL_YYABORT;
}