aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/database.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/database.rs b/src/database.rs
index cd097eb..83d3fea 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -75,6 +75,10 @@ fn table_create(conn: &mut Conn) {
error!("Could not create table! ({:#?}", x);
process::exit(1);
}
+ if let Err(x) = tx.query_drop("SET SESSION sql_mode='NO_AUTO_VALUE_ON_ZERO'") {
+ error!("Could not set NO_AUTO_VALUE_ON_ZERO sql_mode for session, you might have to change the id of this row manually from 1 to 0! ({:#?}", x);
+ process::exit(1);
+ }
q = "INSERT INTO `rss-watcher-feeds` (id,
url,
last_fetch,