Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8453ab7

Browse filesBrowse files
committed
Full value converter refactor
1 parent 3e89ffd commit 8453ab7
Copy full SHA for 8453ab7

File tree

Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-2
lines changed

‎python/tests/test_value_converter.py

Copy file name to clipboardExpand all lines: python/tests/test_value_converter.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,6 +1187,11 @@ async def test_empty_array(
11871187
VarCharArray([]),
11881188
[],
11891189
),
1190+
(
1191+
"VARCHAR ARRAY",
1192+
[],
1193+
[],
1194+
),
11901195
(
11911196
"TEXT ARRAY",
11921197
TextArray([]),

‎src/driver/inner_connection.rs

Copy file name to clipboardExpand all lines: src/driver/inner_connection.rs
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ impl PsqlpyConnection {
2929
if prepared {
3030
return Ok(pconn.prepare_cached(query).await?);
3131
} else {
32-
pconn.batch_execute("BEGIN").await?;
3332
let prepared = pconn.prepare(query).await?;
3433
self.drop_prepared(&prepared).await?;
35-
pconn.batch_execute("COMMIT").await?;
3634
return Ok(prepared);
3735
}
3836
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.