From: Marco van Wieringen Date: Mon, 5 Apr 2010 11:46:59 +0000 (+0200) Subject: Fix typos X-Git-Tag: Release-5.0.2~103 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d2833a5f89205838d397cdc7b2dd4d73b5c2a6fd;p=bacula%2Fbacula Fix typos --- diff --git a/bacula/src/cats/ingres.c b/bacula/src/cats/ingres.c index 7a483d5fec..c8799a7cfd 100755 --- a/bacula/src/cats/ingres.c +++ b/bacula/src/cats/ingres.c @@ -658,7 +658,7 @@ int my_ingres_currval(B_DB *mdb, const char *table_name) Dmsg1(500, "my_ingres_currval invoked with '%s'\n", query); - result = INGquery(mdb->db, query); + result = INGquery(mdb->db, query, mdb->transaction); if (!result) { Dmsg1(50, "Query failed: %s\n", query); diff --git a/bacula/src/cats/myingres.c b/bacula/src/cats/myingres.c index 728a0668d8..c072446534 100644 --- a/bacula/src/cats/myingres.c +++ b/bacula/src/cats/myingres.c @@ -547,7 +547,7 @@ INGresult *INGquery(INGconn *conn, const char *query, bool transaction) IISQLDA *desc = NULL; INGresult *res = NULL; int rows = -1; - int cols = INGgetCols(conn, query); + int cols = INGgetCols(conn, query, transaction); /* # line 546 "myingres.sc" */ int sess_id; @@ -607,7 +607,7 @@ void INGclear(INGresult *res) INGfreeDescriptor(res->sqlda); INGfreeINGresult(res); } -void INGcommit(onst INGconn *conn) +void INGcommit(const INGconn *dbconn) { /* # line 601 "myingres.sc" */ diff --git a/bacula/src/cats/myingres.h b/bacula/src/cats/myingres.h index e89315ec0a..f5a4554275 100644 --- a/bacula/src/cats/myingres.h +++ b/bacula/src/cats/myingres.h @@ -70,17 +70,17 @@ typedef struct ing_conn { } INGconn; /* ---Prototypes--- */ int INGcheck(void); -short INGgetCols(INGconn *conn, const char *query. bool transaction); +short INGgetCols(INGconn *conn, const char *query, bool transaction); char *INGgetvalue(INGresult *res, int row_number, int column_number); bool INGgetisnull(INGresult *res, int row_number, int column_number); int INGntuples(const INGresult *res); int INGnfields(const INGresult *res); char *INGfname(const INGresult *res, int column_number); short INGftype(const INGresult *res, int column_number); -int INGexec(INGconn *db, const char *query. bool transaction); -INGresult *INGquery(INGconn *db, const char *query. bool transaction); +int INGexec(INGconn *db, const char *query, bool transaction); +INGresult *INGquery(INGconn *db, const char *query, bool transaction); void INGclear(INGresult *res); -void INGcommit(onst INGconn *conn); +void INGcommit(const INGconn *conn); INGconn *INGconnectDB(char *dbname, char *user, char *passwd, int session_id); void INGdisconnectDB(INGconn *dbconn); char *INGerrorMessage(const INGconn *conn); diff --git a/bacula/src/cats/myingres.sc b/bacula/src/cats/myingres.sc index 5f0b210851..7e664af097 100644 --- a/bacula/src/cats/myingres.sc +++ b/bacula/src/cats/myingres.sc @@ -542,7 +542,7 @@ INGresult *INGquery(INGconn *conn, const char *query, bool transaction) IISQLDA *desc = NULL; INGresult *res = NULL; int rows = -1; - int cols = INGgetCols(conn, query); + int cols = INGgetCols(conn, query, transaction); EXEC SQL BEGIN DECLARE SECTION; int sess_id; EXEC SQL END DECLARE SECTION; @@ -596,7 +596,7 @@ void INGclear(INGresult *res) INGfreeINGresult(res); } -void INGcommit(onst INGconn *conn) +void INGcommit(const INGconn *conn) { EXEC SQL BEGIN DECLARE SECTION; int sess_id; diff --git a/bacula/src/cats/myingres.sh b/bacula/src/cats/myingres.sh index cb554a47e9..11629707b0 100644 --- a/bacula/src/cats/myingres.sh +++ b/bacula/src/cats/myingres.sh @@ -83,17 +83,17 @@ typedef struct ing_conn { /* ---Prototypes--- */ int INGcheck(void); -short INGgetCols(INGconn *conn, const char *query. bool transaction); +short INGgetCols(INGconn *conn, const char *query, bool transaction); char *INGgetvalue(INGresult *res, int row_number, int column_number); bool INGgetisnull(INGresult *res, int row_number, int column_number); int INGntuples(const INGresult *res); int INGnfields(const INGresult *res); char *INGfname(const INGresult *res, int column_number); short INGftype(const INGresult *res, int column_number); -int INGexec(INGconn *db, const char *query. bool transaction); -INGresult *INGquery(INGconn *db, const char *query. bool transaction); +int INGexec(INGconn *db, const char *query, bool transaction); +INGresult *INGquery(INGconn *db, const char *query, bool transaction); void INGclear(INGresult *res); -void INGcommit(onst INGconn *conn); +void INGcommit(const INGconn *conn); INGconn *INGconnectDB(char *dbname, char *user, char *passwd, int session_id); void INGdisconnectDB(INGconn *dbconn); char *INGerrorMessage(const INGconn *conn);