From: <msz...@ya...> - 2007-05-10 03:29:40
|
SourceForge.net escribió: > Bugs item #1715278, was opened at 2007-05-08 14:01 > Message generated for change (Tracker Item Submitted) made by Item Submitter > You can respond by visiting: > https://sourceforge.net/tracker/?func=detail&atid=462816&aid=1715278&group_id=51305 > > Please note that this message will contain a full copy of the comment thread, > including the initial issue submission, for this request, > not just the latest update. > Category: wxARG > Group: None > Status: Open > Resolution: None > Priority: 5 > Private: No > Submitted By: Nobody/Anonymous (nobody) > Assigned to: Matías Szeftel (mszeftel) > Summary: wxARG 1.2.0-rc3 Error when loading BLOB fields > > Initial Comment: > I create a table: > > id - integer > sometext - varchar, > binarydata - blob > > and wxARG generates the source code which calls DatabaseResultSet::GetResultBlob and passes a single parameter to it (field name), however DatabaseResultSet::GetResultBlob should have 2 parameters and that's why I get an error during compilation of my project. > > Also one more thing. As far as I can understand from documentation, tehere is some difference between data types TEXT and BLOB in SQLite (I'm not sure about other servers.. I'll try to find more info regarding this point), and BLOB fields can contain binary data, but wxARG generates a member of wxActiveRecordRow-derived class (in my case it is TestRow class) whose type is wxString. Is it possible to change the data type of class members for BLOB fields to wxMemoryBuffer or maybe add some option to wxARG which should allow to change the data type for BLOB and/or TEXT fields? This would be helpful when storing/loading binary files to/from database. > > I also attached the source code of my test project. > > Regards, > T-Rex > > PS: Many thanks for solving the previous bug of 1.2.0-rc2. > > ---------------------------------------------------------------------- > > Yes, sorry for that. I used wxString when I first design it and when I want it to change to wxMemoryBuffer I noticed that DatabaseLayer didn't had a SetParamBlob(int index, wxMemoryBuffer buffer), but I requested to Joseph Blough and he added it. Somehow the feature was missed in my todo-list. So, I'have now commited the changes to the CVS but I have still not tried the generated code. When I do I'll update a new release candidate setup.exe for windows and sourcecode package. Thanks for the bug report, Regards, Matías. PS: T-Rex, I've taken you as my beta tester ;). When you complete your testing with wxARG might be a good time to make a stable release. I don't test all the funtionallity in my project. |