java.jdbc

insert-rows (incorrectly) patches incomplete records

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
  • Environment:
    Postgres database on Debian machine

Description

When using sql/insert-rows with a dataset that contains incomplete rows the rows will be patched with values from the preceding rows. The behaviour to be expected is not documented.

I would expect insert-rows either only accepts complete rows. When accepting incomplete rows I would expect patching with nil-values instead of values from other rows.

Attached you find an example and the output when running in comments.

Activity

Cees van Kemenade made changes -
Field Original Value New Value
Affects Version/s Release 1.5 [ 10150 ]
Key CLJ-1186 JDBC-50
Project Clojure [ 10010 ] java.jdbc [ 10021 ]
Sean Corfield made changes -
Assignee Sean Corfield [ seancorfield ]
Sean Corfield made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: