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

object TABLE "xxx" is in use #996

Closed
fishcodelib opened this issue Sep 15, 2021 · 1 comment
Closed

object TABLE "xxx" is in use #996

fishcodelib opened this issue Sep 15, 2021 · 1 comment

Comments

@fishcodelib
Copy link

Firebird: 4.0.0.2496-1-x64
FirebirdSql.Data.FirebirdClient: 8.5.3.0
OS: Windows 10
var ConnectionString = @"DataSource=localhost;ServerType=Embedded;Database=""test.fdb"";User ID=SYSDBA;Password=masterkey;Pooling=False;client library=C:\Firebird-4.0.0.2496-1-x64\fbclient.dll";
FbConnection.CreateDatabase(ConnectionString,4096,true,true);
using (var conn = new FbConnection(ConnectionString))
{
conn.Open();
Console.WriteLine(conn.ServerVersion);
using (var cmd = conn.CreateCommand())
{
cmd.CommandText = @"CREATE TABLE ""test"" (""ctimestamptz"" timestamp with time zone, ""ctimetz"" time with time zone)";
cmd.ExecuteNonQuery();
cmd.CommandText = @"select * from ""test""";
using (var reader = cmd.ExecuteReader())
{ //Known issues: #905
//while (reader.Read()) //Exception thrown: 'Unknown time zone ID.'
//{
// Console.WriteLine(reader[0]);
//}
}
}
using (var cmd = conn.CreateCommand())
{
cmd.CommandText = @"DROP TABLE ""test""";
cmd.ExecuteNonQuery(); //Exception thrown: unsuccessful metadata update object TABLE "test" is in use'
}
}

@cincuranet
Copy link
Member

Unknown timezone error because of #998.

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