Skip to content

I put your code chopshop on vrp_garages and give me this erro #19

Description

@tiagomorais121

vRP/C#] query exception vRP/ls_customs : System.AggregateException: One or more errors occurred. (Parameter ‘@vehicle’ must be defined. To use this as a variable, set ‘Allow User Variables=true’ in the connection string.) —> MySql.Data.MySqlClient.MySqlException: Parameter ‘@vehicle’ must be defined. To use this as a variable, set ‘Allow User Variables=true’ in the connection string.
at MySql.Data.MySqlClient.MySqlStatementPreparer+ParameterSqlParser.OnNamedParameter (System.Int32 index, System.Int32 length) [0x0005b] in :0
at MySql.Data.MySqlClient.MySqlParser.Parse (System.String sql) [0x001be] in :0
at MySql.Data.MySqlClient.MySqlStatementPreparer.ParseAndBindParameters () [0x0003a] in :0
at MySql.Data.MySqlClient.CommandExecutors.TextCommandExecutor.ExecuteReaderAsync (System.String commandText, MySql.Data.MySqlClient.MySqlParameterCollection parameterCollection, System.Data.CommandBehavior behavior, MySql.Data.Protocol.Serialization.IOBehavior ioBehavior, System.Threading.CancellationToken cancellationToken) [0x000c6] in :0
at vRP.MySQL+<>c__DisplayClass11_2.<e_query>b__0 () [0x003e9] in <8dfc0861f4df44189d833de5e878b97b>:0
Exception_EndOfInnerExceptionStack
—> (Inner Exception #0) MySql.Data.MySqlClient.MySqlException (0x80004005): Parameter ‘@vehicle’ must be defined. To use this as a variable, set ‘Allow User Variables=true’ in the connection string.
at MySql.Data.MySqlClient.MySqlStatementPreparer+ParameterSqlParser.OnNamedParameter (System.Int32 index, System.Int32 length) [0x0005b] in :0
at MySql.Data.MySqlClient.MySqlParser.Parse (System.String sql) [0x001be] in :0
at MySql.Data.MySqlClient.MySqlStatementPreparer.ParseAndBindParameters () [0x0003a] in :0
at MySql.Data.MySqlClient.CommandExecutors.TextCommandExecutor.ExecuteReaderAsync (System.String commandText, MySql.Data.MySqlClient.MySqlParameterCollection parameterCollection, System.Data.CommandBehavior behavior, MySql.Data.Protocol.Serialization.IOBehavior ioBehavior, System.Threading.CancellationToken cancellationToken) [0x000c6] in :0
at vRP.MySQL+<>c__DisplayClass11_2.<e_query>b__0 () [0x003e9] in <8dfc0861f4df44189d833de5e878b97b>:0 <—

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions