Skip to content

Error when running vacuum in sqlite #1984

@kensei

Description

@kensei

Hi there,.

When I upgraded dapperlib to 2.1.11, I get an error when I run a vacuum statement.

connection.Execute("VACUUM;");
System.ArgumentException : The CommandType 'StoredProcedure' is not supported. :    at Microsoft.Data.Sqlite.SqliteCommand.set_CommandType(CommandType value)
     at Dapper.CommandDefinition.SetupCommand(IDbConnection cnn, Action`2 paramReader) in /_/Dapper/CommandDefinition.cs:line 128
     at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader) in /_/Dapper/SqlMapper.cs:line 2970
     at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 656
     at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 527

The parser is judging the sql type as StoredProcedure.
How can I fix this?
Thank you in advance.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions