FirebirdSQL / fdb

Firebird Driver for Python
https://www.firebirdsql.org/en/devel-python-driver/
Other
60 stars 26 forks source link

Call to fetch after a sql statement without a result should raise exception [PYFB35] #32

Closed firebird-automations closed 11 years ago

firebird-automations commented 11 years ago

Submitted by: @pcisar

According to DB API 2.0 spec:

An Error <http://www.python.org/dev/peps/pep-0249/#error> (or subclass) exception is raised if the previous call to .execute*() <http://www.python.org/dev/peps/pep-0249/#id14> did not produce any result set or no call was issued yet.

Instead reporting correct error, FDB response to fetch on executed statement that doesn't return any result ends with memory access violation error.

Commits: FirebirdSQL/fdb@74637bc836d73633a4eb5ca212ba540f8bf3a13c FirebirdSQL/fdb@a336033d984f91159e518360d2dfa62a23667ec6 FirebirdSQL/fbt-repository@07c370dbbed09f227c323383009fe833517ffd21 FirebirdSQL/fbt-repository@85ea220c62a4dc1603c0f8370b43e2b133dea045

firebird-automations commented 11 years ago
Modified by: @pcisar status: Open \[ 1 \] =\> Closed \[ 6 \] resolution: Fixed \[ 1 \] Fix Version: 1\.2 \[ 10530 \]
firebird-automations commented 11 years ago

Commented by: @pcisar

Reopenned to change fix version.

firebird-automations commented 11 years ago
Modified by: @pcisar status: Closed \[ 6 \] =\> Reopened \[ 4 \] resolution: Fixed \[ 1 \] =\>
firebird-automations commented 11 years ago

Commented by: @pcisar

Fix version changed.

firebird-automations commented 11 years ago
Modified by: @pcisar status: Reopened \[ 4 \] =\> Closed \[ 6 \] resolution: Fixed \[ 1 \] Fix Version: 1\.1\.1 \[ 10540 \] Fix Version: 1\.2 \[ 10530 \] =\>