RevDatabaseConnectResult

Björnke von Gierke bvg at mac.com
Wed May 9 10:38:16 EDT 2012


file a bug report.

other then that, workaround is obviously to check if revDatabaseConnectResult(gDBID) is empty, and then create your own error.

On 02.05.2012, at 03:23, Peter Haworth wrote:

> Unless I'm misunderstanding something, the above function doesn't work, at
> least with sqlite.
> 
> I have the following code snippet:
> 
> *put* revDataFromQuery(,,gDBID,psql) into myData
> 
> *if* myData begins with "revdberr" *then*
> 
>   *return* revDatabaseConnectResult(gDBID)
> 
> end if
> 
> 
> Dictionary says:
> 
> 
> "I*f there were no errors on the specified database connection, the
> revDatabaseConnectResult function returns empty. Otherwise the
> revDatabaseConnectResult function returns the database specific error
> message for the most recent database operation that failed.*"
> 
> 
> The above code returns empty even when myData begins with "revdberr"
> 
> 
> I know I can return myData and it will have the error plus LC's preamble, I
> have reasons for not wanting to do that.
> 
> 
> Any thoughts?
> 
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list