projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38700b8
)
Default to now when no starttime is given
author
Joey Schulze
<joey@infodrom.org>
Wed, 16 Nov 2005 19:19:34 +0000
(19:19 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 16 Nov 2005 19:19:34 +0000
(19:19 +0000)
src/InfoCon/hwdb/update.wml
patch
|
blob
|
history
diff --git
a/src/InfoCon/hwdb/update.wml
b/src/InfoCon/hwdb/update.wml
index
44560f6
..
affb520
100644
(file)
--- a/
src/InfoCon/hwdb/update.wml
+++ b/
src/InfoCon/hwdb/update.wml
@@
-77,6
+77,9
@@
$id);
$sth = pg_exec ($dbh, $query) or die_query("Cannot update the database!", $query);
} else {
+ if (!isset($starttime)) {
+ $starttime = 'now()';
+ }
$query = sprintf ("INSERT INTO component (name,serno,starttime,endtime,owner,hwtype,price,status,comment) "
."VALUES ('%s','%s','%s',%s,%d,%d,%s,'%s','%s')",
addslashes ($name),