Skip to content

Commit f03f86c

Browse files
committed
Connect/ODBC: Implement suggestions by CodeRabbit
1 parent e9886e2 commit f03f86c

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

docs/connect/odbc/csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using System;
3434
using System.Data.Odbc;
3535

3636
// Connect to database
37-
string connection_string = "Driver={PostgreSQL Unicode};Server=localhost;Port=5432;Uid=crate;Pwd=crate;Database=crate;MaxVarcharSize=1073741824";
37+
string connection_string = "Driver={PostgreSQL Unicode};Server=localhost;Port=5432;Uid=crate;Pwd=crate;MaxVarcharSize=1073741824";
3838
OdbcConnection connection = new OdbcConnection(connection_string);
3939
connection.Open();
4040

docs/connect/odbc/erlang.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ io:fwrite("~p~n", [odbc:sql_query(Ref, "SELECT mountain, height FROM sys.summits
2323

2424
:::{todo}
2525
Enable with the [Erlang patch](https://github.com/crate/cratedb-guide/pull/420).
26-
```
26+
```md
2727
- {ref}`connect-erlang`
2828
```
2929
:::

docs/connect/odbc/python.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import pyodbc
3131
# Connect to database
3232
connection_string = \
3333
"Driver={PostgreSQL Unicode};Server=localhost;Port=5432;" \
34-
"Uid=crate;Pwd=crate;Database=crate;MaxVarcharSize=1073741824"
34+
"Uid=crate;Pwd=crate;MaxVarcharSize=1073741824"
3535
connection = pyodbc.connect(connection_string)
3636

3737
# Invoke query
@@ -82,7 +82,7 @@ import turbodbc
8282
# Connect to database
8383
connection_string = \
8484
"Driver={PostgreSQL Unicode};Server=localhost;Port=5432;" \
85-
"Uid=crate;Pwd=crate;Database=doc;MaxVarcharSize=1073741824"
85+
"Uid=crate;Pwd=crate;MaxVarcharSize=1073741824"
8686
connection = turbodbc.connect(connection_string)
8787

8888
# Invoke query
@@ -100,7 +100,7 @@ connection.close()
100100

101101
:::{todo}
102102
Enable with the [Python patch](https://github.com/crate/cratedb-guide/pull/403).
103-
```
103+
```md
104104
- {ref}`Turbodbc -- a high-performance ODBC library <turbodbc>`
105105
```
106106
:::
@@ -125,7 +125,7 @@ your environment.
125125
```python
126126
connection_string = \
127127
"Driver={PostgreSQL Unicode};Server=testcluster.cratedb.net;Port=5432;" \
128-
"Uid=admin;Pwd=password;Database=crate;MaxVarcharSize=1073741824"
128+
"Uid=admin;Pwd=password;MaxVarcharSize=1073741824"
129129
```
130130

131131

docs/connect/odbc/visualbasic.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ cn.Open "Dsn=<MyDataSourceName>;" & _
3030
"Port=5432;" & _
3131
"Uid=crate;" & _
3232
"Pwd=crate;" & _
33-
"Database=doc;" & _
3433
"MaxVarcharSize=1073741824;"
3534
3635
'Invoke query

0 commit comments

Comments
 (0)