#447 closed defect (fixed)
psDBCleanup won't take !dbh
| Reported by: | Paul Price | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | types | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I suggest that psDBCleanup should behave like psFree, in that if it is passed a
NULL database handle (dbh), it should quietly perform no action. The current
implementation produces a SEGV if passed a NULL.
Change History (7)
comment:1 by , 21 years ago
comment:3 by , 21 years ago
It's probably fine for the time being as it'll have to be changed yet again to
make it thread safe / not needlessly dump and regenerate the lookup tables if
you have more then one database connection open.
comment:4 by , 21 years ago
| Owner: | changed from to |
|---|
comment:5 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Current implementation generates an error.
Note:
See TracTickets
for help on using tickets.

It looks like this change has already been made:
1.22 (evanalst 15-Jun-05): Check if argument dbh is NULL
1.22 (evanalst 15-Jun-05): if(dbh == NULL) {
1.22 (evanalst 15-Jun-05): psError(PS_ERR_BAD_PARAMETER_TYPE, true,
1.22 (evanalst 15-Jun-05): PS_ERRORTEXT_psDB_INVALID_PSDB);
1.22 (evanalst 15-Jun-05): } else {
Can this bug be closed?