0

我正在尝试使用以下命令将类型转换为 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 收到消息“字符串索引超出范围 -11”,知道为什么吗?

PS:第一次用ot...

4

0 回答 0