Skip to content

Commit

Permalink
Use server's default database #309
Browse files Browse the repository at this point in the history
  • Loading branch information
xzkostyan committed May 15, 2022
1 parent 9a8b4a0 commit d10048d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clickhouse_driver/defines.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

DEFAULT_DATABASE = 'default'
DEFAULT_DATABASE = ''
DEFAULT_USER = 'default'
DEFAULT_PASSWORD = ''

Expand Down
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_simple(self):
c = Client.from_url('clickhouse://host')

self.assertHostsEqual(c, [('host', 9000)])
self.assertEqual(c.connection.database, 'default')
self.assertEqual(c.connection.database, '')

c = Client.from_url('clickhouse://host/db')

Expand Down

0 comments on commit d10048d

Please sign in to comment.