Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor adapter problem
Message
From
04/10/2021 17:26:32
 
 
To
04/10/2021 11:11:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01682390
Message ID:
01682434
Views:
40
>>I have a cursor adapter that points a view in a postgreSQL database.
>>I defined the cursor adapter to map all fields in the view
>>When i try to recover data from the view with cursorfill i have no problems if i decide to receive all defined fields.
>>If i decide to reduce the number of fields and modify the selectCmd parameter in beforeCursorFill() method i can't open the view...... I have this problem only with some views... not all
>>The error i have is :"syntax error at end of input Error while executing the query Code: 1526"
>>
>>Thanks
>I've never used cursor adapters but if you manually run the modified command does it give you a syntax error?

While Dragans approach certainly has merit, your approach might be faster.

Creating a minimal Cursoradapter in Code with table and alias set, then fool around with connection (different ODBC drivers or perhaps even OleDB) and SelectCmd gives better turnaround than for each attempt setting properties 100%.

Going from simple field to get a workable cursor, then add chunks of fields, joins or other SQL is often fastest way to find offending part.

CursorAdapter is adept at adapting itself...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform