diff options
author | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-06-06 16:11:56 +0000 |
---|---|---|
committer | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-06-06 16:11:56 +0000 |
commit | 3b680a20ab2cbb98cfa658d85be7a44baaf95d2c (patch) | |
tree | 6217c36e0ace8a7892a0a1567f13e9985903c7d6 /src/my/my.c | |
parent | 67dc0efd426a379b818155ed87f3c1a76d9e352f (diff) | |
download | gnunet-3b680a20ab2cbb98cfa658d85be7a44baaf95d2c.tar.gz gnunet-3b680a20ab2cbb98cfa658d85be7a44baaf95d2c.zip |
continue to fix extract result
Diffstat (limited to 'src/my/my.c')
-rw-r--r-- | src/my/my.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/my/my.c b/src/my/my.c index d4e72ae7c..ef11fbe74 100644 --- a/src/my/my.c +++ b/src/my/my.c | |||
@@ -173,7 +173,16 @@ GNUNET_MY_extract_result (struct GNUNET_MYSQL_StatementHandle *sh, | |||
173 | mysql_stmt_error (stmt)); | 173 | mysql_stmt_error (stmt)); |
174 | return GNUNET_SYSERR; | 174 | return GNUNET_SYSERR; |
175 | } | 175 | } |
176 | |||
176 | ret = mysql_stmt_fetch (stmt); | 177 | ret = mysql_stmt_fetch (stmt); |
178 | |||
179 | if (MYSQL_DATA_TRUNCATED == ret) | ||
180 | { | ||
181 | fprintf(stderr, "Data truncated with error %d \n", ret); | ||
182 | fprintf(stderr, "nontruncated length of the parameter values : %d\n", rs[0].mysql_bind_output_length); | ||
183 | return GNUNET_SYSERR; | ||
184 | } | ||
185 | |||
177 | if (MYSQL_NO_DATA == ret) | 186 | if (MYSQL_NO_DATA == ret) |
178 | return GNUNET_NO; | 187 | return GNUNET_NO; |
179 | if (0 != ret) | 188 | if (0 != ret) |