Added quotes to listen/unlisten channel names to honor case sensitivity and be consistent with 'listen_all()'

This commit is contained in:
rage311
2020-06-02 21:30:23 -06:00
committed by Austin Bonander
parent 9b68eb19ef
commit a0d1106f90
2 changed files with 5 additions and 2 deletions

View File

@@ -51,6 +51,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
async fn notify(mut pool: &PgPool) {
static COUNTER: AtomicUsize = AtomicUsize::new(0);
// Note that channel names are lower-cased by Postgres unless they are quoted
let res = pool
.execute(&*format!(
r#"