comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » DataMiner + MySQL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
DataMiner + MySQL [message #40555] Thu, 19 August 2004 02:37
Philip Kershaw is currently offline  Philip Kershaw
Messages: 5
Registered: March 2004
Junior Member
Hi,

Has anyone had any experience using DataMiner with MySQL? I'm on slightly
dodgy ground I realise as officially MySQL is not supported with DataMiner
but I know of it being used successfully used elsewhere.

I've encountered problems adding new records to an existing database. When
adding text fields using the AddRecord or SetField method I get an error.
e.g.

Connection to database is OK:

IDL> oDB = Obj_New("IDLdbDatabase")
IDL> oDB->Connect, DataSource="testDB", User_ID="test", Password="test"

Create record set object and set record in "Reports" table:

IDL> oRecord = Obj_New("IDLdbRecordSet", oDB, Table="Reports")
IDL> Stat = oRecord->MoveCursor(/Last)
IDL> oRecord->SetField, 1, "GST"

The SetField command fails with an ODBC error. It should set the second
field "ReportType" of the last record.

I've had similar problems with the AddRecord method. However, setting
numeric and date type fields works OK but not text fields.

I can list the table from the mysql command line:

mysql> select * from Reports;
+----------+------------+------------+
| ReportID | ReportType | GenTime |
+----------+------------+------------+
| 1 | | 2004-08-18 |
| 2 | | 2004-08-18 |
| 3 | | 2004-08-18 |

I can also insert / change records from the mysql command line so the
problem must be somewhere in the MySQL <-> MyODBC <-> DataMiner interface.

System configuration is as follows:

Platform is Sun Solaris 8

IDL version: 6.0
MySQL: 4.0.20
MyODBC: 3.51

Anyone have any ideas or experience with this kind of thing?

Cheers,
Phil Kershaw

Space Science Dept.
Rutherford Appleton Laboratory
UK
[Message index]
 
Read Message
Previous Topic: Adding a Table to a plot
Next Topic: Re: Adding a Table to a plot

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:51:14 PDT 2025

Total time taken to generate the page: 0.00408 seconds