diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-02-02 22:59:07 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-05 15:02:56 +0400 |
commit | 72f43df623261d5fe579cb355451d84216c8882d (patch) | |
tree | 6d2921d9e807e624244af9273b2332e184a5bc60 /sql/sp_pcontext.h | |
parent | ffbb2bbc09e7fc8c0f60d5c42ce521b4c31c94a7 (diff) | |
download | mariadb-git-72f43df623261d5fe579cb355451d84216c8882d.tar.gz |
MDEV-10914 ROW data type for stored routine variables
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r-- | sql/sp_pcontext.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/sp_pcontext.h b/sql/sp_pcontext.h index 414a3cbc7cc..00cc81964eb 100644 --- a/sql/sp_pcontext.h +++ b/sql/sp_pcontext.h @@ -69,6 +69,20 @@ public: offset(_offset), default_value(NULL) { } + /* + Find a ROW field by its qualified name. + @param var_name - the name of the variable + @param field_name - the name of the variable field + @param[OUT] row_field_offset - the index of the field + + @retval NULL if the variable with the given name was not found, + or it is not a row variable, or it does not have a field + with the given name, or a non-null pointer otherwise. + row_field_offset[0] is set only when the method returns !NULL. + */ + const Spvar_definition *find_row_field(const LEX_STRING &var_name, + const LEX_STRING &field_name, + uint *row_field_offset); }; /////////////////////////////////////////////////////////////////////////// |