Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Make MySql Connector/.NET 6.7.4 use LIKE instead LOCATE with Contains? (1 reply)

$
0
0
I'm using the 6.7.4 .NET Connector for MySQL and i have a problem with a linq to sql query that uses the Contains .NET method.. i have to search the word 'movil' and in the DB there are words with 'móvil'.. with LIKE this returns results but because the .NET Connector uses LOCATE mysql function, then this function doesn't retrieve the same results.. how can i do to change this and use the LIKE function instead LOCATE?

If i run the result query in mysql the query doesn't retrieve any result, but if i only change the LOCATE function to the LIKE function, then this brings the correct results that i want

Viewing all articles
Browse latest Browse all 1451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>