File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,15 @@ public async Task<IActionResult> RunAsync([HttpTrigger(AuthorizationLevel.Anonym
52
52
53
53
string sql =
54
54
"select *, 1 as rowOrder from organizations where " +
55
- "MATCH (Organization) AGAINST ('@ term' IN BOOLEAN MODE); " ;
55
+ "MATCH (Organization) AGAINST (? term IN BOOLEAN MODE); " ;
56
56
//"UNION " +
57
57
//"select *, 2 as rowOrder from organizations where " +
58
58
//"MATCH(Organization) AGAINST(concat(@term, '* -', @term) IN BOOLEAN MODE) " +
59
59
//"ORDER by rowOrder, Organization";
60
60
61
61
using ( var command = new MySqlCommand ( sql , conn ) )
62
62
{
63
- command . Parameters . AddWithValue ( "@ term" , term ) ;
63
+ command . Parameters . AddWithValue ( "term" , term ) ;
64
64
65
65
Console . WriteLine ( "Execute command" ) ;
66
66
You can’t perform that action at this time.
0 commit comments