summaryrefslogtreecommitdiff
path: root/sql/sql_connect.cc
diff options
context:
space:
mode:
authorMagne Mahre <magne.mahre@oracle.com>2011-02-24 12:23:38 +0100
committerMagne Mahre <magne.mahre@oracle.com>2011-02-24 12:23:38 +0100
commit27166fc64f54ef82f1800988ffff431868377645 (patch)
tree6197d8203c9fbdb91c2dfac05aa84c023633e557 /sql/sql_connect.cc
parentc278961c335c08804a76f7d95f05b7c46120a97f (diff)
downloadmariadb-git-27166fc64f54ef82f1800988ffff431868377645.tar.gz
Bug#11767480 - SPATIAL INDEXES ON NON-SPATIAL COLUMNS CAUSE CRASHES.
This is a backport of the patch for MySQL Bug#50574. Adding a SPATIAL INDEX on non-geometrical columns caused a segmentation fault when the table was subsequently inserted into. A test was added in mysql_prepare_create_table to explicitly check whether non-geometrical columns are used in a spatial index, and throw an error if so. For MySQL 5.5 and later, a new and more meaningful error message was introduced. For 5.1, we (re-)use an existing error code.
Diffstat (limited to 'sql/sql_connect.cc')
0 files changed, 0 insertions, 0 deletions