Skip to content

Commit

Permalink
SQLite connect to database not with a URL-encoded path
Browse files Browse the repository at this point in the history
I guess this will fail on "space in the path" paths.
  • Loading branch information
olleolleolle committed Aug 6, 2024
1 parent 2a5e7e1 commit 14126ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gemstash/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def db
db = if RUBY_PLATFORM == "java"
Sequel.connect("jdbc:sqlite:#{db_path}", config.database_connection_config)
else
Sequel.connect("sqlite://#{URI.escape(db_path)}", config.database_connection_config)
Sequel.connect("sqlite://#{db_path}", config.database_connection_config)
end
when "postgres", "mysql", "mysql2"
db_url = config[:db_url]
Expand Down

0 comments on commit 14126ca

Please sign in to comment.