Menu

#10 Bind Parameters by name

open
nobody
None
1
2015-09-30
2015-09-30
No

Hi everybody.
I'm changing the code, to make IBPP support to set values into the SQL, by name, and not only by ID, Example:

statement.Prepare("INSERT INTO TEST_TABLE (ID, COLUMN2, COL3, ABC) VALUES (:IDVALUE, :COL2, ?, :ABC)");
        st2.Set("IDVALUE", 1);
        st2.Set("COL2", "AAAA");
        st2.Set(3, 12.34); #Regular use
        st2.Set("abc", 12344.0);

Is there interest in this patch? Someone would like to help me finding possible bugs?
I think the code is practically functional, but is still "ugly"...

Thanks

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.