Skip to content

Commit

Permalink
readme: example changed
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Feb 26, 2016
1 parent 0730e7c commit 00c9d5b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ void main(string[] args)
"$4::integer[] as multi_array, "~
"'{\"float_value\": 123.456,\"text_str\": \"text string\"}'::json as json_value";
p.args.length = 4;
p.args[0].value = "-1234.56789012345";
p.args[1].value = "first line\nsecond line";
p.args[2].value = null;
p.args[3].value = "{{1, 2, 3}, {4, 5, 6}}";
p.argsFromArray = [
"-1234.56789012345",
"first line\nsecond line",
null,
"{{1, 2, 3}, {4, 5, 6}}"
];
auto r = conn.exec(p);
writeln( "0: ", r[0]["double_field"].as!PGdouble_precision );
Expand Down

0 comments on commit 00c9d5b

Please sign in to comment.