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

SimpleRoleProvider.cs bug (no replies)

$
0
0
From source code net connector 6.9.4 (6.9.3 too)
SimpleRoleProvider.cs

===============
internal int GetRoleId(string role)
{
using (MySqlDatabaseWrapper dbConn = new MySqlDatabaseWrapper(GetConnectionString()))
{
var roleid = dbConn.ExecuteQuerySingleRecord(string.Format("select roleid from {0} where rolename=?;", _rolesTable), role);
if (role != null)
return (int)role[0];

return 0;
}
}
=================

¿Maybe return (int)roleid[0]?

Now MySqlSimpleRoleProvider.RoleExists("rolename") is ALWAYS true

Viewing all articles
Browse latest Browse all 1447


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