Hi there libdbi developers.

I'm currently converting an application from mysql-only to libdbi,
but I've run across a rather irritating problem.

My dev-box uses libdbi 0.8.3, but the build-box uses 0.8.1. Some
functions I'd like to use (dbi_conn_escape_string_copy() among
others) are in 0.8.3, but not in 0.8.2. I suppose I could convert
all the queries to use dbi_conn_quote_string_copy() instead, but
since it's not performance critical I've decided to write a small
wrapper and remove the quotation marks instead (there are rather
a lot of queries).

This shouldn't be much of a problem, but I can't seem to find
any versioning macro telling me what version of the library I'm
currently building against. The LIBDBI_LIB_{CURRENT,REVISION,AGE}
macros are useless for this, since the ABI hasn't changed, and
thus the .so-version remains the same, and new functionality
added in a backwards compatible way (the preferred way, one would
think) won't bump it either, which means that new functionality
really can't be used portably until the ABI breaks, which sucks
quite tremenduously.

Note that the dbi_version() function can't be used for this, as
any conditional based on its return value has to be done at run-
time.

I tried poking around in the build-system, but I can't seem to
find where the current version is set, so I can't submit a patch
to add such a macro. Any pointers?

-- 
Andreas Ericsson                   andreas.erics...@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
libdbi-devel mailing list
libdbi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libdbi-devel

Reply via email to