On Thu, Feb 26, 2004 at 06:22:48PM -0500, Jeff Urlwin wrote:
> Tim,
> 
> Would you mind if DBI held constants, exportable via sql_types for
> SQL_CURSOR_XXXXX.  

Constants yes, via :sql_types probably not. I'll add more :sql_foo's
This one could be :sql_cursor_types

The DBI is bound to gain more ODBC 'stuff' over time.

> The reason I don't like 3 is that forces a user to use a specific driver
> instead of just DBI.  It's a minor thing, overall, but I think it's better
> for those cross-platform scripts to NOT specify a driver anywhere except in
> the connect.

*nod*

> I realize that is oversimplification of reality, given
> different dialects of SQL, etc, so I don't feel strongly about it, just
> strong enough to ask you in an e-mail if you'd accept a patch which adds the
> four (or 5 if you add SQL_CURSOR_TYPE_DEFAULT) to the mix.
> 
> SQLEXT.H:/* SQL_CURSOR_TYPE options */
> SQLEXT.H:#define SQL_CURSOR_FORWARD_ONLY         0UL
> SQLEXT.H:#define SQL_CURSOR_KEYSET_DRIVEN        1UL
> SQLEXT.H:#define SQL_CURSOR_DYNAMIC              2UL
> SQLEXT.H:#define SQL_CURSOR_STATIC               3UL
> SQLEXT.H:#define SQL_CURSOR_TYPE_DEFAULT         SQL_CURSOR_FORWARD_ONLY /*
> Default value */
> 
> Please advise if you agree or not.

I agree!

Tim.

Reply via email to