summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-03-26 17:43:59 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2019-03-26 17:43:59 +0200
commit0bc42602266815b81fe86b08c2228912c1a95340 (patch)
tree7379577fac279387ec64d9ec0d752db11b0e425c /sql/item.h
parent7225bef7275da77faab316b863da0f4f5bf24a8f (diff)
parent2d592f757cd624fe964ac39d05b6bdd985a827e2 (diff)
downloadmariadb-git-0bc42602266815b81fe86b08c2228912c1a95340.tar.gz
Merge 10.3 into 10.4
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 6fc04fdde14..7d1f14d31cf 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -1449,6 +1449,13 @@ public:
}
virtual String *val_raw(String*) { return 0; }
+ bool eval_const_cond()
+ {
+ DBUG_ASSERT(const_item());
+ DBUG_ASSERT(!is_expensive());
+ return val_bool();
+ }
+
/*
save_val() is method of val_* family which stores value in the given
field.