[gnome-db] parameters in SQL commands



hi

So, we really need to have support for using parameter's placeholders
when sending SQL commands to providers.

My idea is to use a generic format for the placeholders (:name, for
instance) and add a new function that just gets a SQL string and a
GdaParameterList, and which replaces the placeholders with the values in
the parameter list.

So, the only question is what format to use for the placeholders. I
think it is not very important, since the string will be parsed before
being sent to the DBMS, but anyway, we should be sure we use something
that doesn't conflict with some SQL dialects or whatever.

Ideas? If nobody disagrees, I'll use :name.

cheers




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]