Opened 18 years ago

Closed 16 years ago

#1022 closed defect (fixed)

MySQL driver open fails on a database with no tables

Reported by: hobu Owned by: hobu
Priority: high Milestone: 1.5.0
Component: OGR_SF Version: 1.4.0
Severity: normal Keywords:
Cc: mchapman, Mateusz Łoskot

Description (last modified by Mateusz Łoskot)

ogrinfo will report that it can correctly open a MySQL database that has no tables. Attempting to do the same thing with Python will result in an error.

Filing this so I remember to clean this issue up when implementing CreateDatasource

Change History (3)

comment:3 by hobu, 17 years ago

Cc: mchapman added
Description: modified (diff)
Milestone: 1.5.0
Owner: changed from warmerdam to hobu
Status: newassigned
Version: unspecified1.4.0

I think Martin Chapman has already fixed this one, but I'm not sure. CC'ing him for confirmation.

comment:4 by Mateusz Łoskot, 17 years ago

Cc: Mateusz Łoskot added
Description: modified (diff)

comment:5 by hobu, 16 years ago

Resolution: fixed
Status: assignedclosed

Confirmed that this one seems to work ok. sptest is a newly created database with nothing in it:

fire:gdal hobu$ ogrinfo MySQL:sptest
INFO: Open of `MySQL:sptest'
      using driver `MySQL' successful.
fire:gdal hobu$ export CPL_DEBUG=on
fire:gdal hobu$ ogrinfo MySQL:sptest
OGR: OGROpen(MySQL:sptest/0x201f90) succeeded as MySQL.
INFO: Open of `MySQL:sptest'
      using driver `MySQL' successful.
OGR: GetLayerCount() = 0

fire:gdal hobu$ ogrinfo MySQL:sptest,user=hobu -so
OGR: OGROpen(MySQL:sptest,user=hobu/0x201fa0) succeeded as MySQL.
INFO: Open of `MySQL:sptest,user=hobu'
      using driver `MySQL' successful.
OGR: GetLayerCount() = 0
Note: See TracTickets for help on using tickets.