diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-25 17:05:09 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-25 17:05:22 +0200 |
commit | 169f1c8c1db0a6d8cebf308ced1de064eadcdc4d (patch) | |
tree | 27b86aa84b65360df50a91c5ada878f590700a7d /src/datacache | |
parent | 2c6b87e1974c502a2fc074050c41daa4674dbdc0 (diff) | |
download | gnunet-169f1c8c1db0a6d8cebf308ced1de064eadcdc4d.tar.gz gnunet-169f1c8c1db0a6d8cebf308ced1de064eadcdc4d.zip |
allow NULL fields for varsize
Diffstat (limited to 'src/datacache')
-rw-r--r-- | src/datacache/plugin_datacache_postgres.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index 5c497cdf8..2fe6498a5 100644 --- a/src/datacache/plugin_datacache_postgres.c +++ b/src/datacache/plugin_datacache_postgres.c | |||
@@ -68,11 +68,11 @@ init_connection (struct Plugin *plugin) | |||
68 | { | 68 | { |
69 | struct GNUNET_PQ_ExecuteStatement es[] = { | 69 | struct GNUNET_PQ_ExecuteStatement es[] = { |
70 | GNUNET_PQ_make_execute ("CREATE TEMPORARY TABLE IF NOT EXISTS gn090dc (" | 70 | GNUNET_PQ_make_execute ("CREATE TEMPORARY TABLE IF NOT EXISTS gn090dc (" |
71 | " type INTEGER NOT NULL DEFAULT 0," | 71 | " type INTEGER NOT NULL," |
72 | " discard_time BIGINT NOT NULL DEFAULT 0," | 72 | " discard_time BIGINT NOT NULL," |
73 | " key BYTEA NOT NULL DEFAULT ''," | 73 | " key BYTEA NOT NULL," |
74 | " value BYTEA NOT NULL DEFAULT ''," | 74 | " value BYTEA NOT NULL," |
75 | " path BYTEA DEFAULT '')" | 75 | " path BYTEA DEFAULT NULL)" |
76 | "WITH OIDS"), | 76 | "WITH OIDS"), |
77 | GNUNET_PQ_make_try_execute ("CREATE INDEX IF NOT EXISTS idx_key ON gn090dc (key)"), | 77 | GNUNET_PQ_make_try_execute ("CREATE INDEX IF NOT EXISTS idx_key ON gn090dc (key)"), |
78 | GNUNET_PQ_make_try_execute ("CREATE INDEX IF NOT EXISTS idx_dt ON gn090dc (discard_time)"), | 78 | GNUNET_PQ_make_try_execute ("CREATE INDEX IF NOT EXISTS idx_dt ON gn090dc (discard_time)"), |