summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSree Harsha Totakura <sreeharsha@totakura.in>2015-04-10 14:47:23 +0200
committerSree Harsha Totakura <sreeharsha@totakura.in>2015-04-12 10:07:45 +0200
commit23445db811b4a4a281f0456f3a4e0411d2109d95 (patch)
treeb186797c74006131d9a0b4a21839a857fe93becd /src
parentf6e14d3e936142b7181c7ef6246a2fd78c050301 (diff)
downloadexchange-23445db811b4a4a281f0456f3a4e0411d2109d95.tar.gz
exchange-23445db811b4a4a281f0456f3a4e0411d2109d95.tar.bz2
exchange-23445db811b4a4a281f0456f3a4e0411d2109d95.zip
mintdb postgres: hardlimit storing of currency code to 3 characters - #3768
Diffstat (limited to 'src')
-rw-r--r--src/mintdb/plugin_mintdb_postgres.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mintdb/plugin_mintdb_postgres.c b/src/mintdb/plugin_mintdb_postgres.c
index 19ae3a3bd..6fc3b4410 100644
--- a/src/mintdb/plugin_mintdb_postgres.c
+++ b/src/mintdb/plugin_mintdb_postgres.c
@@ -1409,7 +1409,7 @@ postgres_insert_deposit (void *cls,
TALER_PQ_QUERY_PARAM_PTR (&amount_nbo.value),
TALER_PQ_QUERY_PARAM_PTR (&amount_nbo.fraction),
TALER_PQ_QUERY_PARAM_PTR_SIZED (amount_nbo.currency,
- TALER_CURRENCY_LEN - 1),
+ 3),
TALER_PQ_QUERY_PARAM_PTR (&deposit->merchant_pub),
TALER_PQ_QUERY_PARAM_PTR (&deposit->h_contract),
TALER_PQ_QUERY_PARAM_PTR (&deposit->h_wire),