projects
/
mir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8ab8de3
)
on insert, the "webdb_lastchange" field should get a value
author
mh
<mh>
Sun, 21 Jul 2002 22:32:25 +0000
(22:32 +0000)
committer
mh
<mh>
Sun, 21 Jul 2002 22:32:25 +0000
(22:32 +0000)
source/mir/storage/Database.java
patch
|
blob
|
history
diff --git
a/source/mir/storage/Database.java
b/source/mir/storage/Database.java
index
79ac9ac
..
523fb60
100755
(executable)
--- a/
source/mir/storage/Database.java
+++ b/
source/mir/storage/Database.java
@@
-27,10
+27,13
@@
import mir.misc.*;
* Treiber, Host, User und Passwort, ueber den der Zugriff auf die
* Datenbank erfolgt.
*
* Treiber, Host, User und Passwort, ueber den der Zugriff auf die
* Datenbank erfolgt.
*
- * @version $Revision: 1.
19 $ $Date: 2002/06/29 15:44:46
$
+ * @version $Revision: 1.
20 $ $Date: 2002/07/21 22:32:25
$
* @author $Author: mh $
*
* $Log: Database.java,v $
* @author $Author: mh $
*
* $Log: Database.java,v $
+ * Revision 1.20 2002/07/21 22:32:25 mh
+ * on insert, the "webdb_lastchange" field should get a value
+ *
* Revision 1.19 2002/06/29 15:44:46 mh
* make the webdb_create update be called webdb_create_update. it breaks things otherwise. a fixme case I know..
*
* Revision 1.19 2002/06/29 15:44:46 mh
* make the webdb_create update be called webdb_create_update. it breaks things otherwise. a fixme case I know..
*
@@
-668,7
+671,8
@@
public class Database implements StorageObject {
if (!aField.equals(thePKeyName)) {
aValue = null;
// sonderfaelle
if (!aField.equals(thePKeyName)) {
aValue = null;
// sonderfaelle
- if (aField.equals("webdb_create")) {
+ if (aField.equals("webdb_create") ||
+ aField.equals("webdb_lastchange")) {
aValue = "NOW()";
}
else {
aValue = "NOW()";
}
else {