Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VFP] Cursor operation - SQL SELECT with Functions #1579

Open
MarioV-GH opened this issue Oct 2, 2024 · 0 comments
Open

[VFP] Cursor operation - SQL SELECT with Functions #1579

MarioV-GH opened this issue Oct 2, 2024 · 0 comments
Labels
Milestone

Comments

@MarioV-GH
Copy link

MarioV-GH commented Oct 2, 2024

Describe the bug
xsharp-error when using SQL Select into with functions

To Reproduce
Code to reproduce the behavior:

USING System
USING System.Collections.Generic
USING System.Text

FUNCTION check_cursor AS VOID
        * 1. works fine:
        create cursor abc (mkey i, mident c(10))
        insert into abc (mkey,mident) values (1,"a")
        insert into abc (mkey,mident) values (2,"b")
        insert into abc (mkey,mident) values (3,"c")

        create cursor def (mkey_fk i,mtext c(10))
        insert into def (mkey_fk,mtext) values  (1,"inf1")
        insert into def  (mkey_fk,mtext)  values (1,"inf2")
        insert into def  (mkey_fk,mtext)  values (2,"infA")

        insert into def  (mkey_fk,mtext)  values (3,"to_del")
        insert into def  (mkey_fk,mtext)  values (4,"to_del")
        SELECT abc.*,cast(mtext+"x" as m) minfo_long FROM abc INTO cursor ghi
        SELECT abc.*,udf_getstring() str FROM abc into cursor ghi
RETURN
ENDFUNC

FUNCTION udf_getstring()
        LOCAL cString AS STRING
        cString = sys(2015)
        RETURN cString
ENDFUNC

Expected behavior
Full Support of vfp-sql-select

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants