zend+pdo+db2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christian Welzel

    zend+pdo+db2

    Hi there,

    i'm not sure, if it is a php or a database problem, but i would
    consider it the first.
    i'm programming some code with zend_db and pdo to access a db2
    database. additionally a want to be able to replace the db2 on the
    localhost with mysql (easier to maintain for a developer). This should
    be no problem, as long as i stick to ansi-sql...
    But now my problem arises:
    I initialize my table-classes in zend like this:

    class Core_Db_Table_A ctions extends Zend_Db_Table_A bstract
    {
    protected $_name = 'actions';
    }

    this works fine on mysql but db2 is compaining about the not
    defined table "actions". If i write it all uppercase (ACTIONS)
    db2 is happy...
    So i wonder if it shouldn't be the task of zend/pdo to hide those
    differences from the programmer? Or have i overseen or misunderstood
    something?

    --
    MfG, Christian Welzel aka Gawain@Regenbog en

    GPG-Key: http://www.camlann.de/key.asc
    Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15
Working...