diff options
author | Judd Vinet <judd@archlinux.org> | 2004-07-11 20:45:21 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2004-07-11 20:45:21 +0000 |
commit | de737c171f2d57baa3e01abe01f7afd588ec1753 (patch) | |
tree | 7d9c767f210d372f3b772acd9791dbbd15385c9f | |
parent | 543c4e812bcc6df5d8e437b4accfbc7e1a273534 (diff) |
fixed todolist_pkgs table ref in pkgdb2
-rw-r--r-- | pkgdb2.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: pkgdb2.c,v 1.3 2004/07/02 00:17:52 judd Exp $ */ +/* $Id: pkgdb2.c,v 1.4 2004/07/11 20:45:21 judd Exp $ */ #include <stdio.h> #include <stdlib.h> @@ -231,7 +231,7 @@ int main(int argc, char **argv) snprintf(query, sizeof(query), "DELETE FROM packages WHERE id='%d'", ptr->id); doquery(&db, query); - snprintf(query, sizeof(query), "DELETE FROM todolist_pkgs WHERE id='%d'", + snprintf(query, sizeof(query), "DELETE FROM todolist_pkgs WHERE listid='%d'", ptr->id); doquery(&db, query); } |