Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the new table locking feature [DNET341] #350

Closed
firebird-automations opened this issue Aug 16, 2010 · 2 comments
Closed

Problem with the new table locking feature [DNET341] #350

firebird-automations opened this issue Aug 16, 2010 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: Marc Bettex (mbettex)

There is a problem with the new locking table feature introduced in the weekly builds. When calling the FbConnection.GetSchema(...) method I got the following exception

C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbTransaction.cs(474, 26) : FirebirdSql.Data.Common.TransactionParameterBuffer BuildTpb(FirebirdSql.Data.FirebirdClient.FbTransactionOptions)
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbTransaction.cs(437, 13) : FirebirdSql.Data.Common.TransactionParameterBuffer BuildTpb()
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbTransaction.cs(363, 21) : Void BeginTransaction()
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbCommand.cs(1153, 21) : Void Prepare(Boolean)
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbCommand.cs(1215, 13) : Void ExecuteCommand(System.Data.CommandBehavior, Boolean)
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbCommand.cs(559, 6) : FirebirdSql.Data.FirebirdClient.FbDataReader ExecuteReader(System.Data.CommandBehavior)
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbCommand.cs(659, 13) : System.Data.Common.DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior)
System.Data.IDataReader System.Data.IDbCommand.ExecuteReader(System.Data.CommandBehavior)
Int32 FillInternal(System.Data.DataSet, System.Data.DataTable[], Int32, Int32, System.String, System.Data.IDbCommand, System.Data.CommandBehavior)
Int32 Fill(System.Data.DataTable[], Int32, Int32, System.Data.IDbCommand, System.Data.CommandBehavior)
Int32 Fill(System.Data.DataTable)
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\Schema\FbSchema.cs(57, 17) : System.Data.DataTable GetSchema(FirebirdSql.Data.FirebirdClient.FbConnection, System.String, System.String[])
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\Schema\FbSchemaFactory.cs(210, 13) : System.Data.DataTable PrepareCollection(FirebirdSql.Data.FirebirdClient.FbConnection, System.String, System.String[])
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\Schema\FbSchemaFactory.cs(79, 21) : System.Data.DataTable GetSchema(FirebirdSql.Data.FirebirdClient.FbConnection, System.String, System.String[])
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbConnectionInternal.cs(406, 13) : System.Data.DataTable GetSchema(System.String, System.String[])
C:\Users\bettex\Documents\Marc\Projects\NETProvider\source\FirebirdSql\Data\FirebirdClient\FbConnection.cs(468, 13) : System.Data.DataTable GetSchema(System.String, System.String[])

The dictionnary holding the parameters for the table locking was never set, to it is null, and the foreach in FbTransation at line 474 throws a NullReferenceException. I have fixed it on my machine by adding a constructor to FbTransactionOptions that assignes an empty dictionnary to FbTransactionOptions.LockTables.

Commits: 8f857ac

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

Component: http://ADO.NET Provider [ 10041 ]

Component: Weekly Builds [ 10091 ] =>

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

No branches or pull requests

2 participants