@@ -9,9 +9,13 @@ using Base.Test, ODBC, DataStreams, Missings, WeakRefStrings, DataFrames, DecFP
9
9
10
10
run (` uname -a` )
11
11
12
- props = open (f-> Dict (split (ln, ' :' ) for ln in eachline (f)) , " /Users/jacobquinn/.tug/application.properties" )
13
- RIG, server, port = map (strip, split (props[" environment.subdomain" ], ' .' ))[1 ], strip (props[" routing.services.mysql.host" ]), strip (props[" routing.services.mysql.port" ])
14
- dsn = ODBC. DSN (" Driver={MySQL ODBC Driver}; user=domo; password=popchart; server=$server ; port=$port ;" )
12
+ dsn = if haskey (ENV , " ODBC_DSN" )
13
+ ODBC. DSN (ENV [" ODBC_DSN" ])
14
+ else
15
+ props = open (f-> Dict (split (ln, ' :' ) for ln in eachline (f)) , " /Users/jacobquinn/.tug/application.properties" )
16
+ RIG, server, port = map (strip, split (props[" environment.subdomain" ], ' .' ))[1 ], strip (props[" routing.services.mysql.host" ]), strip (props[" routing.services.mysql.port" ])
17
+ ODBC. DSN (" Driver={MySQL ODBC Driver}; user=domo; password=popchart; server=$server ; port=$port ;" )
18
+ end
15
19
16
20
# dsn = ODBC.DSN("Driver=MySQL;uid=root")
17
21
# dsn = ODBC.DSN("MySQL-test", "root", "")
@@ -308,4 +312,4 @@ println("mysql passed.")
308
312
# @test data.test_array[1] == "{1,2,3}"
309
313
# showall(data)
310
314
311
- # println("postgresql passed.")
315
+ # println("postgresql passed.")
0 commit comments