summaryrefslogtreecommitdiff
path: root/pg.pgc
diff options
context:
space:
mode:
Diffstat (limited to 'pg.pgc')
-rw-r--r--pg.pgc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pg.pgc b/pg.pgc
index 87c27b9..f9ebaac 100644
--- a/pg.pgc
+++ b/pg.pgc
@@ -227,7 +227,7 @@ void pg_user_set(int channel, struct user_t *user) {
int lines = user->lines[ti],
index = ti;
EXEC SQL END DECLARE SECTION;
- EXEC SQL UPDATE users SET lines = :lines WHERE user_id = :id AND time_index = :index;
+ EXEC SQL UPDATE user_hours SET lines = :lines WHERE user_id = :id AND time_index = :index;
}
} else {
EXEC SQL INSERT INTO users