ibdknox/Korma — Issue #24: Update mixes order of SQL parameters
Author: ikoblik
Created: 2011-11-17 10:05:57+00:00
State: open

I was trying to update this line:
```{:SIGNALID 4206M, :NAME "SR.FASTBCT-AS", :DESCRIPTION nil, :POSITION 1M, :MACHINESUBPARTID 769M}```

Following command
```(update signal (set-fields {:DESCRIPTION "New description"}) (where (= :SIGNALID 4206M)))```
fails with

```
UPDATE SIGNALMENU SET DESCRIPTION = ? WHERE SIGNALMENU."SIGNALID" = ? :: (4206M New description)
SQLException:
Message: ORA-01722: invalid number

SQLState: 42000
Error Code: 1722
```

If I understand it right, parameters for WHERE clause should go last.

Here's the result of dry-run:

```
dry run :: UPDATE SIGNALMENU SET DESCRIPTION = ? WHERE SIGNALMENU."SIGNALID" = ? :: [4206M New description]
[{:id 1}]
```