summaryrefslogtreecommitdiff
path: root/sql/unireg.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2009-10-16 15:57:48 -0700
committerIgor Babaev <igor@askmonty.org>2009-10-16 15:57:48 -0700
commitf7a75b999b4b0e51c647fa19df35db517e0b6721 (patch)
tree0852514919a2ab6af19814df4842b52a7ecd3b57 /sql/unireg.h
parent8ea19fa73e86a3c27917a92affd6a9e43763c7ce (diff)
downloadmariadb-git-f7a75b999b4b0e51c647fa19df35db517e0b6721.tar.gz
The main commit of Andrey Zhakov's patch introducing vurtual(computed) columns.
The original patch has been ameliorated by Sanja and Igor.
Diffstat (limited to 'sql/unireg.h')
-rw-r--r--sql/unireg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/unireg.h b/sql/unireg.h
index 4fbde3b8631..ec4ecf6a10f 100644
--- a/sql/unireg.h
+++ b/sql/unireg.h
@@ -212,6 +212,13 @@
#define DEFAULT_KEY_CACHE_NAME "default"
+/* The length of the header part for each virtual column in the .frm file */
+#define FRM_VCOL_HEADER_SIZE 3
+
+/* Maximum length of the defining expression for a virtual columns */
+#define VIRTUAL_COLUMN_EXPRESSION_MAXLEN 255 - FRM_VCOL_HEADER_SIZE
+
+
/* Include prototypes for unireg */
#include "mysqld_error.h"