It's not a bad idea in principle (you get compile-time checks for your SQL queries), if only it worked well! I'm using ProC now and boy what a piece of junk it is. The biggest WTF:
#if 0
# define blah(...)
#endif
It craps out at #define (==> inside #if 0 <==), unable to parse C'99-style vararg macros.