gvSIG bugs #2114
Error restoring Feature from FeatureReference of JDBC source with a null value in pk
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | Joaquín del Cerro Murciano | |||
Category: | Database | |||
Target version: | 2.1.0-2217-devel | |||
Severity: | Add-on version: | |||
gvSIG version: | 2.0.0 | Add-on build: | ||
gvSIG build: | 2066 | Add-on resolve version: | ||
Operative System: | Add-on resolve build: | |||
Keywords: | Proyecto: | |||
Has patch: | Yes | Hito: | ||
Add-on name: | Unknown |
Description
When I've try to create a Feature instance from a FeatureReference I get a RuntimeException("Reference Not found")
.
After debug code, I've found that generated sql uses an invalid expression for a null value ("field = null
") when it tries to locate the referred record if one of the pk-values is null.
This path modify JDBCStoreProvider to generate a expression "field is null
" for null values.
Also, fixes a problem that makes that pk fields were added multiple times on select clause.
Associated revisions
refs #2114, Error restoring Feature from FeatureReference of JDBC source with a null value in pk
History
#1 Updated by Joaquín del Cerro Murciano over 10 years ago
- Assignee set to Joaquín del Cerro Murciano
#2 Updated by Joaquín del Cerro Murciano over 10 years ago
- Status changed from New to Fixed
- Target version set to 2.1.0-2223-rc1
#3 Updated by Joaquín del Cerro Murciano over 10 years ago
- Target version changed from 2.1.0-2223-rc1 to 2.1.0-2217-devel
#4 Updated by Álvaro Anguix over 10 years ago
- Status changed from Fixed to Closed