Skip to content

Commit e132c01

Browse files
committed
fix: resolve issue with "" on postgres insert
1 parent dca700d commit e132c01

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/src/database/generate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ fn generate_internal_event_table_sql(
105105

106106
let latest_block_insert_queries = networks.iter().map(|network| {
107107
format!(
108-
r#"INSERT INTO rindexer_internal.latest_block ("network", "block") VALUES ("{network}", 0) ON CONFLICT ("network") DO NOTHING;"#
108+
r#"INSERT INTO rindexer_internal.latest_block ("network", "block") VALUES ('{network}', 0) ON CONFLICT ("network") DO NOTHING;"#
109109
)
110110
}).collect::<Vec<_>>().join("\n");
111111

documentation/docs/pages/docs/changelog.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
### Bug fixes
1010
-------------------------------------------------
1111
- fix: allow https connections for clickhouse
12+
- fix: resolve issue with "" on postgres insert
1213

1314
### Breaking changes
1415
-------------------------------------------------

0 commit comments

Comments
 (0)