Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question mark unexpected behavior #1056

Closed
sanikolaev opened this issue Feb 23, 2023 · 1 comment
Closed

Question mark unexpected behavior #1056

sanikolaev opened this issue Feb 23, 2023 · 1 comment

Comments

@sanikolaev
Copy link
Collaborator

sanikolaev commented Feb 23, 2023

The right ? result set is empty, while the right * result set matches the document below:

mysql> drop table if exists t; create table t(f text) min_infix_len='1' min_word_len='1' charset_table='english'; insert into t(f) values('right'),('right ?'),('aa'); select * from t where match('right ?'); show meta;  
--------------  
drop table if exists t  
--------------  
  
Query OK, 0 rows affected (0.04 sec)  
  
--------------  
create table t(f text) min_infix_len='1' min_word_len='1' charset_table='english'  
--------------  
  
Query OK, 0 rows affected, 1 warning (0.00 sec)  
  
--------------  
insert into t(f) values('right'),('right ?'),('aa')  
--------------  
  
Query OK, 3 rows affected (0.00 sec)  
  
--------------  
select * from t where match('right ?')  
--------------  
  
Empty set (0.00 sec)  
  
--------------  
show meta  
--------------  
  
 ---------------- -------   
| Variable_name  | Value |  
 ---------------- -------   
| total          | 0     |  
| total_found    | 0     |  
| total_relation | eq    |  
| time           | 0.000 |  
| keyword[0]     | ?     |  
| docs[0]        | 0     |  
| hits[0]        | 0     |  
| keyword[1]     | right |  
| docs[1]        | 2     |  
| hits[1]        | 2     |  
 ---------------- -------   
10 rows in set (0.00 sec)  
@sanikolaev
Copy link
Collaborator Author

Fixed in 5bd9de1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant