IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#447 closed defect (fixed)

psDBCleanup won't take !dbh

Reported by: Paul Price Owned by: Eric.VanAlst@…
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 jhoblitt, 21 years ago

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?

comment:2 by Paul Price, 21 years ago

I guess. It's not the behaviour I suggested, but it works.

comment:3 by jhoblitt, 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 robert.desonia@…, 21 years ago

Owner: changed from robert.desonia@… to Eric.VanAlst@…

comment:5 by Eric.VanAlst@…, 21 years ago

Resolution: fixed
Status: newclosed

Current implementation generates an error.

comment:6 by Paul Price, 20 years ago

Keywords: VERIFIED added

Bug has been resolved.... closing.

comment:7 by Paul Price, 20 years ago

Keywords: VERIFIED removed

Bugs have been fixed... closing.

Note: See TracTickets for help on using tickets.