Skip to content

Commit 589b8a4

Browse files
committed
Connect/Erlang/ODBC: Include ODBC installation instructions
1 parent 26b2725 commit 589b8a4

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docs/connect/erlang/odbc.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ Erlang includes an [ODBC application] out of the box that provides an
1313
interface to communicate with relational SQL-databases, see also
1414
[Erlang ODBC examples].
1515

16-
::::{todo}
17-
Enable this include with the [ODBC patch](https://github.com/crate/cratedb-guide/pull/411).
18-
```md
19-
:::{include} _odbc-setup-widget.md
16+
:::{rubric} Install
17+
:::
18+
19+
:::{include} ../odbc/install.md
2020
:::
21-
```
22-
::::
2321

2422
:::{rubric} Synopsis
2523
:::
@@ -33,7 +31,7 @@ installed on your system.
3331

3432
main(_) ->
3533
odbc:start(),
36-
{ok, Ref} = odbc:connect("Driver={PostgreSQL ODBC};Server=localhost;Port=5432;Uid=crate;Pwd=crate", []),
34+
{ok, Ref} = odbc:connect("Driver={PostgreSQL Unicode};Server=localhost;Port=5432;Uid=crate;Pwd=crate", []),
3735
io:fwrite("~p~n", [odbc:sql_query(Ref, "SELECT mountain, height FROM sys.summits ORDER BY height DESC LIMIT 3")]),
3836
init:stop().
3937
```
@@ -52,7 +50,7 @@ values matching your environment.
5250
main(_) ->
5351
ssl:start(),
5452
odbc:start(),
55-
{ok, Ref} = odbc:connect("Driver={PostgreSQL};Server=testcluster.cratedb.net;Port=5432;sslmode=require;Uid=admin;Pwd=password", []),
53+
{ok, Ref} = odbc:connect("Driver={PostgreSQL Unicode};Server=testcluster.cratedb.net;Port=5432;sslmode=require;Uid=admin;Pwd=password", []),
5654
io:fwrite("~p~n", [odbc:sql_query(Ref, "SELECT mountain, height FROM sys.summits ORDER BY height DESC LIMIT 3")]),
5755
init:stop().
5856
```

0 commit comments

Comments
 (0)