NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Stu on September 08, 2015, 09:42:40 PM

Title: #2 - Anyone noticed strange behv with C10 and NT8 latest - browse + join fields
Post by: Stu on September 08, 2015, 09:42:40 PM
(Note: Once logged in I can't access the original thread, just get a blank page)

Continues this thread, http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=6454.0;prev_next=next.

Just thought I'd give an update in case anyone else runs into this issue.

It's FM3 setting the sql collation string on a guid unique key field. It changes from whatever it is to SQL_Latin1_General_CP1_CS_AS (search for that here, http://capesoft.com/docs/fm3/fm3.htm, see the history log for Version 4.91).

So I'm guessing at some stage the combination of FM3 and using MSSQL and then whatever clarion and the sql driver is doing in next(SetView) that causes the error (taken from original post):

Code: [Select]
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CS_AS" and "Latin1_General_CI_AS" in the equal to operation. Statement(s) could not be prepared.

Geoff (Capesoft) has given me a work-around for the moment, which I'm about to test. Manually set the collation using ds_SetOption('casesensitivecollation',MyCaseSensitiveCollation) - as in the 4.91 build notes for FM3.

A strange and long-winded issue this one is.
Title: Re: #2 - Anyone noticed strange behv with C10 and NT8 latest - browse + join fields
Post by: Stu on September 08, 2015, 10:58:35 PM
Happy days!

Can confirm that putting ds_SetOption('casesensitivecollation','Latin1_General_CI_AS') in the FM3 Init embed did the trick.

The collation now stays as-is, and Nettalk browses are working again.

Stu
Title: Re: #2 - Anyone noticed strange behv with C10 and NT8 latest - browse + join fields
Post by: terryd on September 09, 2015, 12:30:27 AM
Thanks Stu.
Haven't run into the problem myself but it's nice to know there is a solution if it crops up.