Changeset 2734

Show
Ignore:
Timestamp:
08/29/08 20:19:14 (4 months ago)
Author:
david
Message:

Add config option to run arbitrary SQL commands after connecting to a MySQLi database, closes #831 and refs #646 (also see [2732])

Location:
branches/1.0
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/CHANGELOG

    r2733 r2734  
    55------------------------------ 
    66 
     7ADD: Add config option to run arbitrary SQL commands after connecting to a MySQLi database (#831) (David) 
    78ADD: Allow per-module config_handlers.xml (#826) (Felix) 
    89ADD: Allow action-style subdirectory dot notation for models (#631) (Felix) 
  • branches/1.0/src/database/AgaviMysqliDatabase.class.php

    r2163 r2734  
    123123    // to the resource 
    124124    $this->resource =& $this->connection; 
     125     
     126    foreach((array)$this->getParameter('init_queries') as $query) { 
     127      $this->connection->query($query); 
     128    } 
    125129  } 
    126130