IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#344 closed defect (fixed)

psDBDumpCols() incorrectly handles numeric data

Reported by: jhoblitt Owned by: aaron.culliney@…
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 robert.desonia@…, 21 years ago

Owner: changed from robert.desonia@… to aaron.culliney@…

comment:2 by aaron.culliney@…, 21 years ago

Resolution: fixed
Status: newclosed

comment:3 by Paul Price, 20 years ago

Keywords: VERIFIED added

Bug has been resolved.... closing.

comment:4 by Paul Price, 20 years ago

Keywords: VERIFIED removed

Bugs have been fixed... closing.

Note: See TracTickets for help on using tickets.