'user' is officially an SQL reserved word, which means that it cannot be
used as a field name. Postgres enforces this so rename it to username.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1017 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/tko/db.py b/tko/db.py
index 6749ef7..5f3498d 100644
--- a/tko/db.py
+++ b/tko/db.py
@@ -171,7 +171,7 @@
commit=commit)
self.insert('jobs', {'tag':tag,
'label': job.label,
- 'user': job.user,
+ 'username': job.user,
'machine_idx':job.machine_idx},
commit=commit)
job.index = self.find_job(tag)