Modify table structure in GUI directly cause table info lose connection when using sphinx
Closed this issue · 1 comments
X-Bird commented
Reproduce Problem;
- create table using sphinx connection like this
CREATE TABLE `search_source`
(
id INTEGER UNSIGNED NOT NULL,
weight INTEGER NOT NULL,
query VARCHAR(3072) NOT NULL,
INDEX(query)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://127.0.0.1:9312/source';
now the GUI'S Table Info panel likes this. Pay attention on Create syntax
filed's . It shows the connection using sphinx.
- Alter table structure to add a column like
name
throughStructure
panel directly .
- Open up
Table Info
panel again. Pay attention onCreate syntax
filed's . It lost the connection ~!
Cause Problems
- query result should return in
name
field will bot return any more instead of value0
.
Confirming the problem is this app causes
- create table using sphinx connection like this
add name column in the script
CREATE TABLE `search_source`
(
id INTEGER UNSIGNED NOT NULL,
weight INTEGER NOT NULL,
query VARCHAR(3072) NOT NULL,
name VARCHAR(255),
INDEX(query)
) ENGINE=SPHINX DEFAULT CHARSET=utf8 CONNECTION='sphinx://127.0.0.1:9312/source';