Skip to content
Snippets Groups Projects
Commit 627324a8 authored by esha's avatar esha
Browse files

Fixed result for pg connection.

parent c87b1032
No related merge requests found
......@@ -12,7 +12,7 @@ lua dump = function(v) return box.cjson.encode(v) end
lua connect = {}
---
...
lua for tk in string.gmatch(os.getenv('PG'), '[^:]+') do table.insert(connect, tk) end
lua for tk in string.gmatch(os.getenv('PG')..':', '(.-):') do table.insert(connect, tk) end
---
...
lua c = box.net.sql.connect('pg', unpack(connect))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment