Search found 9 matches
- Sat 29 Jan 2011 07:54
- Forum: dotConnect for Oracle
- Topic: passing array of nullable to storedprocedure
- Replies: 4
- Views: 1562
- Wed 26 Jan 2011 15:38
- Forum: dotConnect for Oracle
- Topic: passing array of nullable to storedprocedure
- Replies: 4
- Views: 1562
passing array of nullable to storedprocedure
Code: Select all
CREATE OR REPLACE TYPE "NUMBER_TBL" table of number;
Code: Select all
StoredProcedure.Parameters.Add(new Devart.Data.Oracle.OracleParameter("array", Devart.Data.Oracle.OracleDbType.Table, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null, 0, "NUMBER_TBL"));
I suppose :
Code: Select all
StoredProcedure.Parameter["array"].Value = new double?[];
Code: Select all
StoredProcedure.ExecuteNonQuery();
Code: Select all
Can not convert.
Stack trace:
в Devart.Data.Oracle.NativeOracleObjectBase.a(Object A_0, OracleAttribute A_1, IntPtr A_2)
в Devart.Data.Oracle.NativeOracleArray.SetElementValue(Object value, Int32 i)
в Devart.Data.Oracle.NativeOracleArray.a(Object A_0)
в Devart.Data.Oracle.NativeOracleArray.set_Value(Array value)
в Devart.Data.Oracle.OracleParameter.a(OracleDbType A_0, Object A_1, Object A_2, Byte[] A_3, Hashtable A_4, Int32 A_5, Int32 A_6, Int32 A_7, Int32 A_8, Int32 A_9, Boolean A_10, OracleConnection A_11, ParameterDirection A_12, String A_13, a5 A_14, Boolean& A_15)
- Sun 31 Jan 2010 15:56
- Forum: dotConnect for Oracle
- Topic: pass multidimensional "table of" through OraCommandCommon
- Replies: 1
- Views: 1172
pass multidimensional "table of" through OraCommandCommon
Hi all.
How can i pass type :
where
to Oracle stored procedure through OraCommandCommon ?
I know that VARCHAR_TBL should be passed as string[], so i tried
pass VARCHAR_SQUARE as string[][] but the 'invalid object state' error occurs.
Sorry for nasty english.
How can i pass type :
Code: Select all
create or replace VARCHAR_SQUARE as table OF varchar_tbl
Code: Select all
create or replce VARCHAR_TBL as table of varchar2
I know that VARCHAR_TBL should be passed as string[], so i tried
pass VARCHAR_SQUARE as string[][] but the 'invalid object state' error occurs.
Sorry for nasty english.
- Tue 12 Jan 2010 11:06
- Forum: dotConnect for Oracle
- Topic: OracleCommand VARCHAR with big length
- Replies: 1
- Views: 1751
OracleCommand VARCHAR with big length
Is it possible to pass strings to VARCHAR parameter without setting max_size? I need to pass large data with undetermined length.
- Thu 23 Apr 2009 08:47
- Forum: dotConnect for Oracle
- Topic: get Child OracleClassType from Parent
- Replies: 8
- Views: 2129
I wrote an oracle procedure :
And it raises ORA-06502 error when run on msg.PayloadObject. It seems that Dequeue() method returns object without message2 data.[/code]
Code: Select all
create or replace procedure conv_from_message_to_message2 (
p_pl_sup in message
,p_pl_sub out message2)
is
begin
p_pl_sub := treat(p_pl_sup as message2);
end;
- Wed 22 Apr 2009 23:23
- Forum: dotConnect for Oracle
- Topic: get Child OracleClassType from Parent
- Replies: 8
- Views: 2129
I have a problem with code string:
because it just copy obj to msg.ObjectPayload, erasing all ObjectPayload data.
How i can perform type conversation ?
Code: Select all
msg.ObjectPayload = obj;
How i can perform type conversation ?
- Tue 07 Apr 2009 00:10
- Forum: dotConnect for Oracle
- Topic: get Child OracleClassType from Parent
- Replies: 8
- Views: 2129
can you post example code please? i can't find the way to perform typecast 8 (.
I try :
and have an "InvalidOperation Exception" on last string.
I try :
Code: Select all
oracleQueue.PayloadTypeName = "A_OBJTYPE";
OracleQueueMessage msg = oracleQueue.Dequeue();
oracleObject Try = new OracleObject("B_OBJTYPE", oracleConnection);
Try = (OracleObject)msg.ObjectPayload.Clone();
string olala = Try[].ToString();
- Fri 03 Apr 2009 21:11
- Forum: dotConnect for Oracle
- Topic: get Child OracleClassType from Parent
- Replies: 8
- Views: 2129
how to perform A->B conversation ?
In C#, i'll just write "A as B_Type" and all is OK.
Is it possible to do same conversation with OracleObjects in this example? Any way is good 8 ).
Is it possible to do same conversation with OracleObjects in this example? Any way is good 8 ).
- Thu 02 Apr 2009 23:21
- Forum: dotConnect for Oracle
- Topic: get Child OracleClassType from Parent
- Replies: 8
- Views: 2129
get Child OracleClassType from Parent
Hi all. I have a queue with object type A and object B inhereted from A. I put a B instance into my queue as A. So Dequeue method return message with A ObjectPayload type. Is it possible to determine ObjectPayload true type? (B in this example)