#344 closed defect (fixed)
psDBDumpCols() incorrectly handles numeric data
| Reported by: | jhoblitt | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | astro | Version: | 0.5.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
This block of code from psDBDumpCols() is type casting 'column', which is a
'psVector', to be a numeric type. Instead, it shold be added to 'table' as a
'PS_META_VEC'.
column = psDBSelectColumnNum(dbh, tableName, field[i].name, pType, 0);
if (pType == PS_META_S32) {
psMetadataAddS32(table, 0, field[i].name, "", (psS32)atoll(column));
} else if (pType == PS_META_F32) {
psMetadataAddF32(table, 0, field[i].name, "", (psF32)atof(column));
} else if (pType == PS_META_F64) {
psMetadataAddF64(table, 0, field[i].name, "", (psF64)atof(column));
}
psFree(column);
Change History (4)
comment:1 by , 21 years ago
| Owner: | changed from to |
|---|
comment:2 by , 21 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 20 years ago
| Keywords: | VERIFIED added |
|---|
Note:
See TracTickets
for help on using tickets.

Bug has been resolved.... closing.