summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.cc
diff options
context:
space:
mode:
authorpem@mysql.comhem.se <>2004-04-06 15:48:58 +0200
committerpem@mysql.comhem.se <>2004-04-06 15:48:58 +0200
commit4a6e6251e760450197d0dce26b5e9b9a6a0ac8a1 (patch)
treebc2c17cd1e1f52242adcfb62808c8e18f12dc83a /sql/sp_pcontext.cc
parenteb7319e850f7f9c363ef83812c74a5cc8e06c429 (diff)
downloadmariadb-git-4a6e6251e760450197d0dce26b5e9b9a6a0ac8a1.tar.gz
Fixed BUG#2776: Stored procedure crash if variable assigned to default.
Keep track on the default value and use it. (Or NULL, if not declared.)
Diffstat (limited to 'sql/sp_pcontext.cc')
-rw-r--r--sql/sp_pcontext.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc
index b7e23c9f5ad..03333a2da72 100644
--- a/sql/sp_pcontext.cc
+++ b/sql/sp_pcontext.cc
@@ -118,6 +118,7 @@ sp_pcontext::push_pvar(LEX_STRING *name, enum enum_field_types type,
p->mode= mode;
p->offset= m_pvar.elements;
p->isset= (mode == sp_param_out ? FALSE : TRUE);
+ p->dflt= NULL;
insert_dynamic(&m_pvar, (gptr)&p);
}
}