我正在尝试使用以下命令将类型转换为c ++对象:
OTT USERID=VCODER@localhost/153351 INTYPE=T_BODYIN.TPY OUTTYPE=T_BODYOUT.TPY CODE=CPP HFILE=T_BODY.H CPPFILE=T_BODY.CPP MAPFILE=T_BODY.CPPSET
这是T_BODYIN.TPY的内容:
case=lower
type t_body
这是SQL TYPE的内容:
CREATE TYPE t_body AS OBJECT (
ID_SOLAR_SYSTEM NUMBER,
ID_BODY NUMBER,
NOME_CORPO VARCHAR2(50 BYTE),
ORBITING VARCHAR2(50 BYTE),
PERIOD_OF_REVOLUTION NUMBER,
ORBITAL_SPEED NUMBER,
INCLINATION_OF_AXIS_TO_ORBIT NUMBER,
EQUATORIAL_DIAMETER NUMBER,
MASS NUMBER,
DENSITY NUMBER,
ESCAPE_VELOCITY NUMBER,
SEMIMAJOR_AXIS NUMBER,
ORBIT_EXCENTRICITY NUMBER,
ORBIT_INCLINATION NUMBER,
PERIHELION NUMBER,
APHELION NUMBER,
PX NUMBER,
PY NUMBER,
PZ NUMBER,
VX NUMBER,
VY NUMBER,
VZ NUMBER
);
我从ott那里得到消息“String index out of range -11”,知道为什么?
P.S:第一次使用ott ...