Update to the new signature of Result.Release() driver API.

[GB.DB.MYSQL]
* NEW: Update to the new signature of Result.Release() driver API.

[GB.DB.POSTGRESQL]
* NEW: Update to the new signature of Result.Release() driver API.

[GB.DB.SQLITE2]
* NEW: Update to the new signature of Result.Release() driver API.

[GB.DB.SQLITE3]
* NEW: Update to the new signature of Result.Release() driver API.
This commit is contained in:
gambas 2021-04-10 16:23:00 +02:00
parent 3677f9ef34
commit 50e3b33eaf
4 changed files with 418 additions and 414 deletions

View file

@ -1020,10 +1020,11 @@ static void query_init(DB_RESULT result, DB_INFO *info, int *count)
<result> is the handle of the query result.
<info> points to the info structure.
<invalid> tells if the associated connection has been closed.
*****************************************************************************/
static void query_release(DB_RESULT result, DB_INFO *info)
static void query_release(DB_RESULT result, DB_INFO *info, bool invalid)
{
mysql_free_result((MYSQL_RES *)result);
}
@ -1352,7 +1353,7 @@ static int rollback_transaction(DB_DATABASE *db)
This function must initialize the following info fields:
- info->nfield must contain the number of fields in the table.
- info->fields is a char*[] pointing at the name of each field.
- info->field is an array of DB_FIELD, one element for each field.
This function returns TRUE if the command has failed, and FALSE if
everything was OK.

View file

@ -1059,10 +1059,11 @@ static void query_init(DB_RESULT result, DB_INFO *info, int *count)
<result> is the handle of the query result.
<info> points to the info structure.
<invalid> tells if the associated connection has been closed.
*****************************************************************************/
static void query_release(DB_RESULT result, DB_INFO *info)
static void query_release(DB_RESULT result, DB_INFO *info, bool invalid)
{
PQclear((PGresult *)result);
}
@ -1424,7 +1425,7 @@ static int rollback_transaction(DB_DATABASE *db)
This function must initialize the following info fields:
- info->nfield must contain the number of fields in the table.
- info->fields is a char*[] pointing at the name of each field.
- info->field is an array of DB_FIELD, one element for each field.
This function returns TRUE if the command has failed, and FALSE if
everything was OK.

View file

@ -803,10 +803,11 @@ static void query_init(DB_RESULT result, DB_INFO *info, int *count)
<result> is the handle of the query result.
<info> points to the info structure.
<invalid> tells if the associated connection has been closed.
*****************************************************************************/
static void query_release(DB_RESULT result, DB_INFO *info)
static void query_release(DB_RESULT result, DB_INFO *info, bool invalid)
{
((Dataset *)result)->close();
}
@ -1078,7 +1079,7 @@ static int rollback_transaction(DB_DATABASE *db)
This function must initialize the following info fields:
- info->nfield must contain the number of fields in the table.
- info->fields is a char*[] pointing at the name of each field.
- info->field is an array of DB_FIELD, one element for each field.
This function returns TRUE if the command has failed, and FALSE if
everything was OK.

File diff suppressed because it is too large Load diff