Domanda

In a C++ / Oracle OTL application I have

 SELECT MYINT FROM MYTABLE

This is the basis for otl_stream selstream On this line I get an conversion exception on an obscure platform (works well on other plafrom) selstream >> myint;
The exception must be related to the type of MYINT on the OTL side.

How can I control this in OTL? I think I should be able to do something like:

SELECT INT( MYINT) 

but the SQL fails.

or something like:

SELECT myint #:<int> FROM MYTABL

(Have tried different forms, still exception, while working on other platforms)

È stato utile?

Soluzione

SELECT MYINT :#1<int>

Solved a similar problem for me

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top