Hallo,

I have a MySQL DB 4.1 (or 5.04) and have connect it with JDBC 3.1.7 to OOo1.9.104 (or
OOo1.1.4) on WinXP
When I make and updatable ResultSet I can write Data to the DB with
updateBoolean and updateDouble but when I try to write Data to an Varchar
with updateString it dosn't work.

Here my Macro:

Sub Main

Dim DatenbankKontext as Object
Dim Datenquelle as Object
Dim Verbindung as Object
Dim Statement as Object
Dim Resultset as Object

DatenbankKontext = createUnoService("com.sun.star.sdb.DatabaseContext")
Datenquelle = DatenbankKontext.getByName("Test")
Verbindung = Datenquelle.getConnection( "", "" )
Statement = Verbindung.createStatement()
Statement.ResultSetConcurrency = 1008
Resultset = Statement.executeQuery("SELECT * FROM bestart")

Resultset.next()
Resultset.updateString (6, "Test")
Resultset.updateDouble (13, 856)
Resultset.updateRow()
msgbox Resultset.getString (6)

Resultset.close()
Statement.close()
Verbindung.close()

End Sub

What I can try to solve the problem?

When I try it with an dBase Database it works.

Thanks
Georg Salvenmoser

PS.: Please see http://qa.openoffice.org/issues/show_bug.cgi?id=49786 for more information



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to