List:MySQL++« Previous MessageNext Message »
From:Tom Riggs Date:May 16 2004 7:39pm
Subject:RE: populating the result object - 2
View as plain text  
I have watched this thread and I do not understand why you would want to
populate a result object in this way. I am still new to this also but as I
understand it the purpose of the result object is to then pull the
information from the query out and perform operations on it like printing or
display or modify. You have data in another format are you trying to insert
the data into the MYSql database? If so then you can write code to create
the appropriate insert query from the data you have. What is it that you
want to do with this data that makes you believe that it should be in a
result object?

-----Original Message-----
From: Vinay Sambamurthy [mailto:vsmurthy@stripped] 
Sent: Friday, May 14, 2004 2:18 PM
To: plusplus@stripped
Subject: populating the result object - 2

Hi,
      I have an XML document which i retrieved from some database using
commands specific to that database. The Xml document contains "field"
elements of this type

 Ex: <field name="id" type="integer">10</field>
     <field name="currenttime" type="time">20:10:30</field>
     <field name="createdBy" type="string">bob</field>
      and so on....

Now I need to construct a mySQL++ Result object out of it..i.e, i need to
populate a Result object. But the mySQL++ examples I saw on the internet,
first construct a query (say for example for retrieving some values) and
then
execute
 Result res = query.store();

But in my case, I have already executed the query using some command that
the database supports(not mySQL++) and I get a string containing the XML
document(described above)  as the result of that query. Now is there some
<way, that I can just populate a Result object with these values? By
explicity executing some commands like say(for example), res.insertElement
or something like that, can I populate the Result object?

Thanks
Vinay


-- 
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1
Thread
populating the result object - 2Vinay  Murthy15 May
RE: populating the result object - 2Tom Riggs16 May
  • RE: populating the result object - 2Vinay Sambamurthy16 May
RE: populating the result object - 2Tom Riggs17 May
  • RE: populating the result object - 2Vinay Sambamurthy18 May
    • Re: populating the result object - 2Sinisa Milivojevic18 May