Page 1 of 1

Problems with Inserting Data & Variables

Posted: Fri 12 Dec 2008 12:18
by Zero-G.
Hey

I use your latest Components & VS2008 The following Code I try without any result:

Code: Select all

    Dim myCommand As New Devart.Data.MySql.MySqlCommand
        Dim LID As Long

        MySqlConnection1.Open()
        myTr = MySqlConnection1.BeginTransaction
        myCommand.Connection = MySqlConnection1
        myCommand.CommandText = "Select @NID :=Max(Identifikation)+1 from Anrede; " & _
                                "Insert Into Anrede (Identifikation, Beschreibung) Values(@NID, 'TIPP');" & _
                                "Select Identifikation from Anrede Where Identifikation= @NID;"
        LID = myCommand.ExecuteScalar
        myTr.Commit()

        MsgBox(LID)
So, I have to say, that MsgBox(LID) tells me the correct value, but it is not set to the DataBase.
Any kinds of tipps?
THX

Posted: Mon 15 Dec 2008 11:31
by AndreyR
Thank you for the report. We have reproduced the problem and now we are investigating it.

Posted: Mon 15 Dec 2008 17:29
by Zero-G.
Hey

When do you think will the problem be solved?

THX

Posted: Tue 16 Dec 2008 12:30
by AndreyR
The problem is solved, look forward to the next build.

Posted: Thu 18 Dec 2008 12:40
by Zero-G.
When will the next build be available?

THX

Posted: Fri 19 Dec 2008 08:40
by AndreyR
The next build will be available in a week or two.