IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 21 years ago

Closed 21 years ago

Last modified 20 years ago

#346 closed defect (fixed)

psDBGenerateCreateTableSQL() incorrectly handles most "META" types

Reported by: jhoblitt Owned by: aaron.culliney@…
Priority: high Milestone:
Component: astro Version: 0.5.0
Severity: normal Keywords:
Cc:

Description

Similar to bug #345, this function mishandles non-numeric types. A
'PS_META_VEC'/etc. does not map to an SQL vachar.

} else if ((item->type == PS_META_STR)
(item->type ==
PS_META_VEC)
(item->type == PS_META_IMG)
(item->type ==
PS_META_HASH)
(item->type == PS_META_LOOKUPTABLE)
(item->type ==
PS_META_JPEG)
(item->type == PS_META_PNG)
(item->type ==
PS_META_ASTROM)
(item->type == PS_META_UNKNOWN)
(item->type ==

PS_TYPE_PTR)) {

+ column name + _ + varchar( + length + )
psStringAppend(&query, "%s VARCHAR(%s)", item->name, item->data.V);

} else {

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

I believe this is now fixed.

comment:3 by jhoblitt, 21 years ago

Keywords: VERIFIED added

Verified by source inspection. Thanks.

comment:4 by Paul Price, 20 years ago

Keywords: VERIFIED removed

Bugs have been fixed... closing.

Note: See TracTickets for help on using tickets.