All,

   Here's a patch that implements the first of the helper functions in 
dbcheck.cpp.  These are not a complete set to have MythTV run in PostgreSQL, 
but it's a start at getting the backend to be more flexible in the databases 
supported.

   I still need to get to the keys, unique constraints, timestamps, and a 
couple of "alter table" commands.  Those should be in the next patch, when I've 
had a couple of weekends to research/code the changes.

   Note: the reason to use the QString::left instead of just an operator=, is 
that in QT4, the pgsql backend changed names from QPGSQL7 to QPGSQL, and it 
should work for 3.3.x and 4.0.  I will also look into coding these as constants 
for ease of maintenance in the next patch.  Any other suggestions?

-- 
Thanks,
Fernando Vilas
[EMAIL PROTECTED]

Attachment: db_helper_fn.patch.gz
Description: GNU Zip compressed data

_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to