You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Driver trait has two methods new_database and new_database_with_opts, but new_database is always ignored by ManagedDriver. instead of forwarding the call to the inner driver's new_database method, it invokes new_database_with_opts(None).
This is almost always desirable behavior, but it can be confusing when you're getting not yet implemented error calling new_database even if you have new_database implemented.
P.S. pretty sure the same applies to other objects as well (Database, Connection..)
Stack Trace
No response
How can we reproduce the bug?
This fails if new_database_with_opts is not implemented.
let mut driver = ManagedDriver::load_dynamic_from_name(
"adbc_dummy",
Some(b"DummyDriverInit"),
AdbcVersion::V110,
).unwrap();
let mut database = driver.new_database().unwrap();
Environment/Setup
No response
The text was updated successfully, but these errors were encountered:
What happened?
Driver trait has two methods
new_database
andnew_database_with_opts
, butnew_database
is always ignored by ManagedDriver. instead of forwarding the call to the inner driver'snew_database
method, it invokesnew_database_with_opts(None)
.This is almost always desirable behavior, but it can be confusing when you're getting
not yet implemented
error callingnew_database
even if you havenew_database
implemented.P.S. pretty sure the same applies to other objects as well (Database, Connection..)
Stack Trace
No response
How can we reproduce the bug?
This fails if
new_database_with_opts
is not implemented.Environment/Setup
No response
The text was updated successfully, but these errors were encountered: