Hi all,

I updated library this morning from .7 to the latest SVN and I get
Notice: Undefined index: length in /home/library/Zend/Db/Adapter/Pdo/Mysql.php on line 109 Notice: Undefined index: precision in /home/library/Zend/Db/Adapter/Pdo/Mysql.php on line 110 Notice: Undefined index: scale in /home/library/Zend/Db/Adapter/Pdo/Mysql.php on line 111 Notice: Undefined index: precision in /home/library/Zend/Db/Adapter/Pdo/Mysql.php on line 110 Everything still works I just get all these notices when using the db adapter.

I setup zend_db and zend_db_table in index.php
// setup database
$db = Zend_Db::factory($config->db->adapter,
         $config->db->config->asArray());
Zend_Db_Table::setDefaultAdapter($db);
Zend::register('db', $db);

and then in my controller

$animal = new Animal();
$db = Zend::registry('db');
$select = $db->select ();
$select->from ("animal", "*");
$select->join ("location", "animal_location_id = location_id");
$animals = $db->fetchAll($select);
$view->assign ('animals', $animals);

and then the view

<?php foreach($this->animals as $animal) : ?>
<table>
  <tr>
    <td><?php echo $this->escape($animal['animal_id']);?></td>
    <td><?php echo $this->escape($animal['location_name']);?></td>
  </tr>
</table>
<?php endforeach; ?>

I also use find() fetchRow(). What am I doing wrong?

Thanks for the help,
Mike

Reply via email to