Skip to content

Commit

Permalink
sample: fix typo in JDBC connection string
Browse files Browse the repository at this point in the history
Issue introduced by addition of `http` flag in JDBC driver.

See: https://community.mapd.com/t/python-jdbc-wrapper/66
  • Loading branch information
RalphLoen authored and andrewseidl committed May 15, 2017
1 parent 93b2ad5 commit fbeddea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SampleCode/mapd_jdbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def connect(dbname, user, host, password):
jar = './mapdjdbc-1.0-SNAPSHOT-jar-with-dependencies.jar' # may want to parametrize
try:
return jaydebeapi.connect('com.mapd.jdbc.MapDDriver',
'jdbc:mapd:{}:{}:.'.format(host, dbname),
'jdbc:mapd:{}:{}:'.format(host, dbname),
{'user': user, 'password': password},
jar)
except Exception as e:
Expand Down

0 comments on commit fbeddea

Please sign in to comment.