To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=106422





------- Additional comments from [email protected] Thu Oct 29 11:31:13 +0000 
2009 -------
Your solution uses the original seq data but OPreparedStatement::setParameter
still allocates a buffer the size of your data which could be large. May I
suggest to change OPreparedStatement::setParameter to the following:

        switch(fSqlType)
        {
                case SQL_CHAR:
                case SQL_VARCHAR:
                case SQL_DECIMAL:
                case SQL_NUMERIC:
                        ++nRealSize;
                        break;
+               case SQL_BINARY:
+               case SQL_VARBINARY:
+                       nRealSize=1;    //dummy buffer, binary data isn't copied
+                       break;
                default:
                        break;
        }
 


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to