View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001431 | SymmetricDS | Bug | public | 2013-10-01 16:30 | 2014-02-03 01:53 |
Reporter | Assigned To | ||||
Priority | normal | ||||
Status | closed | Resolution | fixed | ||
Product Version | 3.5.8 | ||||
Target Version | 3.5.9 | Fixed in Version | 3.5.9 | ||
Summary | 0001431: SQLite primary keys only recognized when they are in column position 1. | ||||
Description | I changed AbstractSqlRowMapper from package org.jumpmind.db.platform.sqlite to recognize any value greater than 0 as a primary key ( see http://sqlite.org/pragma.html#pragma_table_info ) I don't understand why this bit of code is here. Is 99 significant? return v != null && (v.equals("1") || v.equals("99")); but in any case I changed it to return intValue(v) > 0; and changed intValue to catch the exception. protected int intValue(Object v) { if (v == null) return 0; try { return Integer.parseInt(v.toString()); } catch( NumberFormatException ex ) { } return 0; } | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2013-10-01 16:30 |
|
New Issue | |
2013-10-01 16:30 |
|
Status | new => assigned |
2013-10-01 16:30 |
|
Assigned To | => mhanes |
2013-10-11 00:00 | chenson | Status | assigned => resolved |
2013-10-11 00:00 | chenson | Fixed in Version | => 3.5.9 |
2013-10-11 00:00 | chenson | Resolution | open => fixed |
2013-10-11 00:02 | chenson | Status | resolved => closed |
2014-02-03 01:53 | Changeset attached | => SymmetricDS trunk r7710 | |
2015-07-31 01:49 | Changeset attached | => SymmetricDS master 431360c1 |