Skip to content
Snippets Groups Projects
Commit b184a91f authored by Henrique Varella Ehrenfried's avatar Henrique Varella Ehrenfried
Browse files

Allow like_string to use wildcards

parent e5424d64
No related branches found
No related tags found
1 merge request!48Development
Pipeline #24036 failed
...@@ -28,7 +28,7 @@ function parseWhereValue(type, value) { ...@@ -28,7 +28,7 @@ function parseWhereValue(type, value) {
if(type === 'integer') return parseInt(value, 10); if(type === 'integer') return parseInt(value, 10);
if(type === 'double') return parseFloat(value); if(type === 'double') return parseFloat(value);
if(type === 'string') return value; if(type === 'string') return value;
if(type === 'like_string') return value; if(type === 'like_string') return "%"+value+"%";
if(type === 'boolean') { if(type === 'boolean') {
if(value === null || typeof value === 'boolean') { if(value === null || typeof value === 'boolean') {
return value; return value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment