Search found 5 matches

by DTSup
Wed 10 Nov 2010 13:34
Forum: dotConnect for Oracle
Topic: OracleDataAdapter + ParameterDirection.InputOutput
Replies: 8
Views: 2334

I sent my simple project to you. I resolved my problem, but i think you should see it because i didn't get this issue with 5.35 version. Thank you.
by DTSup
Mon 08 Nov 2010 15:22
Forum: dotConnect for Oracle
Topic: OracleDataAdapter + ParameterDirection.InputOutput
Replies: 8
Views: 2334

I can't reproduce this issue with 5.35.62.0 (not trial) but i got the issue with 5.70.180 and 6.x beta. For the DSScheduleForecastWarnings it's a simple dataset. I think you can make dataset with 2 decimal rows. Use second row for mapping InputOutput parameter. I'll try to upload my project later
by DTSup
Mon 08 Nov 2010 12:28
Forum: dotConnect for Oracle
Topic: Oveloaded functions
Replies: 3
Views: 1255

I confirmed it works great. Thank you. But sometimes you can get strange error if you have mismatch types of parameters. For me it was Timestamp and Date. In this case you'll see a message that dotConnect can't find appropriate function and nothing about parameters
by DTSup
Wed 03 Nov 2010 16:19
Forum: dotConnect for Oracle
Topic: OracleDataAdapter + ParameterDirection.InputOutput
Replies: 8
Views: 2334

OracleDataAdapter + ParameterDirection.InputOutput

Hi, I got an issue with OracleDataAdapter + ParameterDirection.InputOutput. I use OracleDataAdapter.Update(Dataset)), but it doesn't return any values. It works ok with ExecuteNonQuery. Here is my sample:

Code: Select all

Dim conn As OracleConnection = New OracleConnection("User Id=servtest;Password=***;Server=test;Unicode=True;")

conn.Open()

Dim cmd As New OracleCommand

 cmd.Connection = conn
        cmd.CommandText = "F.WARNINGS_CP.ins"
        cmd.CommandType = CommandType.StoredProcedure

        cmd.Parameters.Add("audit_id_in", OracleDbType.Number, 5)
        cmd.Parameters("audit_id_in").Direction = ParameterDirection.Input
       
        cmd.Parameters("audit_id_in").SourceColumn = "audit_id"

        cmd.Parameters.Add("warning_id_out", OracleDbType.Number, 0)
        cmd.Parameters("warning_id_out").Direction = ParameterDirection.InputOutput

        cmd.Parameters("warning_id_out").SourceColumn = "warning_id"
        Dim adapter As OracleDataAdapter = New OracleDataAdapter()
        Dim ds As DSScheduleForecastWarnings = New DSScheduleForecastWarnings(0,0)

adapter.InsertCommand = cmd
adapter.Update(ds.Tables("WARNINGS"))

I can provide more information if reproducing this is a problem. Thanks
by DTSup
Tue 02 Nov 2010 11:22
Forum: dotConnect for Oracle
Topic: Oveloaded functions
Replies: 3
Views: 1255

Oveloaded functions

Is it possible to call overloaded functions in OraDeveloper Studio and dotConnect for Oracle? For example there are two functions with the same name "INS" but with different parameters