Bind Parameters by name
IBPP is a C++ client class library for FirebirdSQL
Status: Inactive
Brought to you by:
epocman
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