Opened 11 years ago

Closed 11 years ago

#4955 closed defect (fixed)

ogr.Driver.Open() does not clear CPLErrorReset() in SWIG

Reported by: warmerdam Owned by: hobu
Priority: normal Milestone: 1.9.3
Component: PythonBindings Version: unspecified
Severity: normal Keywords:
Cc:

Description

When doing:

  driver = ogr.GetDriverByName('PG')
  ds = driver.Open('PG:abc')

old errors before the Open() can be left over and interfere with the error-after-open check. Missing CPLErrorReset().

Change History (2)

comment:1 by warmerdam, 11 years ago

Fixed in trunk (r25532).

Need to back port to 1.9.

comment:2 by warmerdam, 11 years ago

Resolution: fixed
Status: newclosed

Patched in 1.9 as well (r25538).

Note: See TracTickets for help on using tickets.