@@ -200,12 +200,12 @@ impl Client {
200
200
let connection = Connection :: open_in_memory ( ) ?;
201
201
if let Some ( ref custom_extension_repository) = config. custom_extension_repository {
202
202
connection. execute (
203
- "SET custom_extension_repository = '?' " ,
203
+ "SET custom_extension_repository = ? " ,
204
204
[ custom_extension_repository] ,
205
205
) ?;
206
206
}
207
207
if let Some ( ref extension_directory) = config. extension_directory {
208
- connection. execute ( "SET extension_directory = '?' " , [ extension_directory] ) ?;
208
+ connection. execute ( "SET extension_directory = ? " , [ extension_directory] ) ?;
209
209
}
210
210
if config. install_extensions {
211
211
connection. execute ( "INSTALL spatial" , [ ] ) ?;
@@ -606,6 +606,27 @@ mod tests {
606
606
. unwrap ( ) ;
607
607
}
608
608
609
+ #[ test]
610
+ fn extension_directory ( ) {
611
+ let _mutex = MUTEX . lock ( ) . unwrap ( ) ;
612
+ let temp_dir = std:: env:: temp_dir ( ) ;
613
+ let config = Config {
614
+ extension_directory : Some ( temp_dir. to_string_lossy ( ) . to_string ( ) ) ,
615
+ ..Default :: default ( )
616
+ } ;
617
+ let _ = Client :: with_config ( config) . unwrap ( ) ;
618
+ }
619
+
620
+ #[ test]
621
+ fn custom_extension_repository ( ) {
622
+ let _mutex = MUTEX . lock ( ) . unwrap ( ) ;
623
+ let config = Config {
624
+ custom_extension_repository : Some ( "." . to_string ( ) ) ,
625
+ ..Default :: default ( )
626
+ } ;
627
+ let _ = Client :: with_config ( config) . unwrap ( ) ;
628
+ }
629
+
609
630
#[ rstest]
610
631
fn search_all ( client : Client ) {
611
632
let item_collection = client
0 commit comments