summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorunknown <gshchepa/uchum@gleb.loc>2007-07-07 20:14:06 +0500
committerunknown <gshchepa/uchum@gleb.loc>2007-07-07 20:14:06 +0500
commita0336ad7d8f28b8de5a2b01ec285634952692abb (patch)
treea95fb8d593c69b8db4fa05ae09a5b11c223c117c /sql/sql_class.h
parentbc52d1d6e306e5fa915d5ebd4db673f2ca552329 (diff)
parent8195a213c2fadfb185e755ce6dda2162df1a5529 (diff)
downloadmariadb-git-a0336ad7d8f28b8de5a2b01ec285634952692abb.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt mysql-test/r/gis.result: Auto merged mysql-test/r/view.result: Auto merged mysql-test/t/gis.test: Auto merged mysql-test/t/loaddata.test: Auto merged sql/item.h: Auto merged sql/spatial.cc: Auto merged sql/sql_class.cc: Auto merged sql/sql_class.h: Auto merged mysql-test/r/loaddata.result: Merge with 5.0-opt. mysql-test/t/view.test: Merge with 5.0-opt.
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h
index e3dac15c219..292c6776e9a 100644
--- a/sql/sql_class.h
+++ b/sql/sql_class.h
@@ -1952,6 +1952,12 @@ public:
#define ESCAPE_CHARS "ntrb0ZN" // keep synchronous with READ_INFO::unescape
+/*
+ List of all possible characters of a numeric value text representation.
+*/
+#define NUMERIC_CHARS ".0123456789e+-"
+
+
class select_export :public select_to_file {
uint field_term_length;
int field_sep_char,escape_char,line_sep_char;
@@ -1961,6 +1967,12 @@ class select_export :public select_to_file {
(see the READ_INFO::unescape method and the ESCAPE_CHARS constant value).
*/
bool is_ambiguous_field_sep;
+ /*
+ The is_unsafe_field_sep field is true if a value of the field_sep_char
+ field is one of the '0'..'9', '+', '-', '.' and 'e' characters
+ (see the NUMERIC_CHARS constant value).
+ */
+ bool is_unsafe_field_sep;
bool fixed_row_size;
public:
select_export(sql_exchange *ex) :select_to_file(ex) {}