| Bug #43274 | Generated SQL commands ignores provider connection's database parameter | ||
|---|---|---|---|
| Submitted: | 28 Feb 3:04 | Modified: | 3 Apr 21:50 |
| Reporter: | Petr Vones | ||
| Status: | Closed | ||
| Category: | Connector/Net | Severity: | S2 (Serious) |
| Version: | 6.0 alpha - revision 1519 | OS: | Microsoft Windows |
| Assigned to: | Tonci Grgin | Target Version: | |
| Tags: | entity framework, schema, database | ||
[28 Feb 3:04]
Petr Vones
[1 Apr 1:15]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/70971
[3 Apr 16:08]
Tony Bedford
An entry was added to the 6.0.1 changelog: The generated Entity Framework model could not be used for a different database (schema) name by changing the provider's database connection string parameter. The SQL commands generator composed the table object name from the Schema attribute value (EntitySet elements) in the generated SSDL file and the table name. The MySQL provider database connection string parameter was being ignored.
[3 Apr 17:55]
Petr Vones
Please reopen. It is partial fix only. It does not work for stored procedures. They are still being looked in original model schema name ignoring connection string database parameter. There is the exception: System.Data.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> MySql.Data.MySqlClient.MySqlException: Procedure or function '`FindUserLockUpdate`' cannot be found in database '`databasemodelschemaname`'. at MySql.Data.MySqlClient.ProcedureCache.GetProcData(MySqlConnection connection, String spName) at MySql.Data.MySqlClient.ProcedureCache.AddNew(MySqlConnection connection, String spName) at MySql.Data.MySqlClient.ProcedureCache.GetProcedure(MySqlConnection conn, String spName) at MySql.Data.MySqlClient.StoredProcedure.GetParameters(String procName) at MySql.Data.MySqlClient.StoredProcedure.Resolve() at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior) at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.EntityClient.EntityCommandDefinition.ExecuteStoreCommands(EntityCommand entityCommand, CommandBehavior behavior)
[3 Apr 21:49]
Reggie Burnett
stored procedure fix in 6.0.2
