Skip to content

Commit

Permalink
fix buildString
Browse files Browse the repository at this point in the history
  • Loading branch information
BMTmohammedtaha committed Sep 26, 2023
1 parent 944eb79 commit e6aa523
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Build/ValueBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,13 @@ public function buildString($value)
if(strpos($value ,':')){
return $value;
}
if($value === '?'){
return $value;
}
if(in_array($value, array_values((new Syntax())->dateFunctions()))){
return "'" . $value . "'";
return $value;
}
return $value ;
return sprintf("'%s'",$value) ;
}

/**
Expand Down

0 comments on commit e6aa523

Please sign in to comment.