summaryrefslogtreecommitdiff
path: root/server/src/database.cc
diff options
context:
space:
mode:
authordeva <deva>2007-09-24 12:47:16 +0000
committerdeva <deva>2007-09-24 12:47:16 +0000
commita3cb015e6b69821062306981924a43a5487f3b5d (patch)
treefcacf4cab2bf2d188775b11f2f53fbf5a9235d7a /server/src/database.cc
parent574f7c69a0cb7d3af3e20d740e6202d2faaf2718 (diff)
Server now parses XML and handles include.
Diffstat (limited to 'server/src/database.cc')
-rw-r--r--server/src/database.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/server/src/database.cc b/server/src/database.cc
index 1d4915e..1a48925 100644
--- a/server/src/database.cc
+++ b/server/src/database.cc
@@ -62,7 +62,7 @@ int Database::post(Transaction &transaction)
commit.macro + "', '" +
commit.version + "', '" +
now + "', '" +
- commit.user + "')";
+ transaction.user + "')";
W.exec(sql);
// Insert field entries
@@ -124,21 +124,21 @@ CREATE DATABASE pracro
CREATE TABLE transactions
(
- "cpr" varchar(255),
- "transaction" varchar(255),
- "makro" varchar(255),
- "version" varchar(255),
- "timestamp" varchar(255),
- "user" varchar(255)
+ "cpr" varchar(11),
+ "transaction" text,
+ "makro" text,
+ "version" text,
+ "timestamp" bigint,
+ "user" text
)
WITH OIDS;
ALTER TABLE transactions OWNER TO pracro;
CREATE TABLE fields
(
- "transaction" varchar(255),
- "name" varchar(255),
- "value" varchar(255)
+ "transaction" text,
+ "name" text,
+ "value" text
)
WITH OIDS;
ALTER TABLE fields OWNER TO pracro;