Opened 9 years ago

Closed 5 years ago

#1175 closed defect (fixed)

rasql create type is not preserving the axis names

Reported by: George Merticariu Owned by: dkamov
Priority: minor Milestone: Future
Component: undecided Version: development
Keywords: Cc: Peter Baumann
Complexity: Medium

Description

Example:

./rasql -q 'create type RGBImageTest as RGBPixel MDARRAY [a,b,c]'

./rasql -q 'select a FROM RAS_MARRAY_TYPES a' —out string → gives back: "create type RGBImageTest as RGBPixel MDARRAY [a0,a1,a2]"

The expected result should be identical with the user input.

Change History (5)

comment:1 by Dimitar Misev, 8 years ago

Owner: changed from George Merticariu to Dimitar Misev
Status: newassigned

comment:2 by Dimitar Misev, 5 years ago

Owner: changed from Dimitar Misev to dkamov

The axis names should be saved in RASBASE when an MDD type is created, and loaded when the MDD type is read.

This should be implemented in some of the relcatalogif/mdd*.sc files.
The correct RASBASE table where MDD types are stored should be extended to allow storing the axis names for each dimension, with an update SQL script in reladminif/db_updates/

comment:3 by dkamov, 5 years ago

Resolution: fixed
Status: assignedclosed

comment:4 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: closedreopened

The database update scripts should be updated so that they are idempotent: if the table already has a column AxisName the update should not try to add again the same column.

comment:5 by Dimitar Misev, 5 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.