From b68bcc64a44e42ae9b57220a516dd558b9419c9f Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sat, 10 Apr 2010 12:14:33 +0200 Subject: [PATCH] Revert "Program currval retrieval somewhat more robust." This reverts commit 2d02e4b0c13e2f26b138ebb411f6f5e253c91d4d. --- bacula/src/cats/ingres.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bacula/src/cats/ingres.c b/bacula/src/cats/ingres.c index b8a85ee5d5..af3428b774 100755 --- a/bacula/src/cats/ingres.c +++ b/bacula/src/cats/ingres.c @@ -647,7 +647,6 @@ static int my_ingres_currval(B_DB *mdb, const char *table_name) char sequence[64]; char query[256]; - char *currval; INGresult *result; int id = 0; @@ -667,10 +666,7 @@ static int my_ingres_currval(B_DB *mdb, const char *table_name) Dmsg0(500, "exec done"); - currval = INGgetvalue(result, 0, 0); - if (currval) { - id = atoi(currval); - } + id = atoi(INGgetvalue(result, 0, 0)); bail_out: INGclear(result); -- 2.39.5