Commit e805e8c8 authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

sql_yacc.yy:

  Fix for possible failure reason on big-endian machines
  ,
parent df7c02d8
...@@ -1168,28 +1168,28 @@ type: ...@@ -1168,28 +1168,28 @@ type:
| BLOB_SYM opt_len { Lex->charset=&my_charset_bin; | BLOB_SYM opt_len { Lex->charset=&my_charset_bin;
$$=FIELD_TYPE_BLOB; } $$=FIELD_TYPE_BLOB; }
| GEOMETRY_SYM { Lex->charset=&my_charset_bin; | GEOMETRY_SYM { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= Field::GEOM_GEOMETRY; Lex->uint_geom_type= (uint) Field::GEOM_GEOMETRY;
$$=FIELD_TYPE_GEOMETRY; } $$=FIELD_TYPE_GEOMETRY; }
| GEOMETRYCOLLECTION { Lex->charset=&my_charset_bin; | GEOMETRYCOLLECTION { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= Field::GEOM_GEOMETRYCOLLECTION; Lex->uint_geom_type= (uint) Field::GEOM_GEOMETRYCOLLECTION;
$$=FIELD_TYPE_GEOMETRY; } $$=FIELD_TYPE_GEOMETRY; }
| POINT_SYM { Lex->charset=&my_charset_bin; | POINT_SYM { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= Field::GEOM_POINT; Lex->uint_geom_type= (uint) Field::GEOM_POINT;
$$=FIELD_TYPE_GEOMETRY; } $$=FIELD_TYPE_GEOMETRY; }
| MULTIPOINT { Lex->charset=&my_charset_bin; | MULTIPOINT { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= Field::GEOM_MULTIPOINT; Lex->uint_geom_type= (uint) Field::GEOM_MULTIPOINT;
$$=FIELD_TYPE_GEOMETRY; } $$=FIELD_TYPE_GEOMETRY; }
| LINESTRING { Lex->charset=&my_charset_bin; | LINESTRING { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= Field::GEOM_LINESTRING; Lex->uint_geom_type= (uint) Field::GEOM_LINESTRING;
$$=FIELD_TYPE_GEOMETRY; } $$=FIELD_TYPE_GEOMETRY; }
| MULTILINESTRING { Lex->charset=&my_charset_bin; | MULTILINESTRING { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= Field::GEOM_MULTILINESTRING; Lex->uint_geom_type= (uint) Field::GEOM_MULTILINESTRING;
$$=FIELD_TYPE_GEOMETRY; } $$=FIELD_TYPE_GEOMETRY; }
| POLYGON { Lex->charset=&my_charset_bin; | POLYGON { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= Field::GEOM_POLYGON; Lex->uint_geom_type= (uint) Field::GEOM_POLYGON;
$$=FIELD_TYPE_GEOMETRY; } $$=FIELD_TYPE_GEOMETRY; }
| MULTIPOLYGON { Lex->charset=&my_charset_bin; | MULTIPOLYGON { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= Field::GEOM_MULTIPOLYGON; Lex->uint_geom_type= (uint) Field::GEOM_MULTIPOLYGON;
$$=FIELD_TYPE_GEOMETRY; } $$=FIELD_TYPE_GEOMETRY; }
| MEDIUMBLOB { Lex->charset=&my_charset_bin; | MEDIUMBLOB { Lex->charset=&my_charset_bin;
$$=FIELD_TYPE_MEDIUM_BLOB; } $$=FIELD_TYPE_MEDIUM_BLOB; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment