sgtcortez / Termsequel

Bringing a portable SQL like syntax to our filesystem.
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

[Bug]: Equal operator considers only the content of the user input #56

Closed sgtcortez closed 3 years ago

sgtcortez commented 3 years ago

Contact Details

No response

What happened?

A bug happened! When comparing with =, it considered only the length of the user input, and then, the result was one file that starts with that value. Which, does not make sense.

Version

1.0 Release

What operating system are you seeing the problem on?

Linux, Windows

Relevant log output

$ ./build/executable/termsequel 'SELECT * FROM . WHERE NAME = L'
 Filename Size Owner     Level File Type Owner Permissions Group Permissions Others Permissions Last Modification
 LICENSE  1521 sgtcortez 1    REGULAR   RW-               R--               R--                2021-08-20 23:17:21

Relevant print output

image