The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > Developer > Omni Frameworks
FAQ Members List Calendar Today's Posts

 
[PATCH]OSLPreparedStatement of OmniSQLite does not work Thread Tools Search this Thread Display Modes
I found OSLPreparedStatement does not work on 10.5.2(intel)
for NULL value of internal sqlite3 statement.
I think the following patch will fix this problem.

Code:
--- ../OmniGroup.orig_sql/Frameworks/OmniSQLite/OSLDatabaseController.m	2008-03-15 20:50:00.000000000 +0900
+++ Frameworks/OmniSQLite/OSLDatabaseController.m	2008-03-17 00:19:48.000000000 +0900
@@ -181,7 +181,7 @@
 	sqlite3_prepare(
 			sqliteDatabase, /* Database handle */
 			[sql UTF8String], /* SQL statement, UTF-8 encoded */
-			0, /* Length of zSql in bytes. */
+			-1, /* Length of zSql in bytes. */
 			&statement, /* OUT: Statement handle */
 			&remainder /* OUT: Pointer to unused portion of zSql */               
 			);
 
Thanks! We've included this fix in the latest source release (OmniFrameworks-2008-03-20.dmg).
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Switch and patch panel wiring calapso OmniGraffle General 3 2011-10-14 12:45 PM
A blind patch in OmniFocus Applescript library RobTrew OmniFocus Extras 0 2010-06-09 01:09 PM
I solved my own MS Project XML issue. Please release a patch! jamesnwynne OmniPlan General 0 2009-05-20 01:14 PM
Fixing the blind patch in "Contexts View" RobTrew OmniFocus 1 for Mac 3 2007-08-21 08:22 AM


All times are GMT -8. The time now is 02:43 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.