[prev] [thread] [next] [lurker] [Date index for 2003/10/17]
>>>>> "RC" == Richard Clamp <richardc@xxxxxxxxx.xxx> writes: RC> It should, because the default for RC> $Siesta::Config::config->storage_dsn is RC> 'dbi:SQLite:@@ROOT@@:/database' (see Config.pm.in) RC> If something is causing that default to be undef instead then that's a RC> different problem to be looked at, but I can't reproduce it here: RC> % perl -MSiesta::Config -le 'print $Siesta::Config::config->storage_dsn' RC> dbi:SQLite:/usr/local/siesta/database It returns almost same for me: ilya@juil:~$ perl5.9.0 -MSiesta::Config -le 'print $Siesta::Config::config->storage_dsn' dbi:SQLite:/home/ilya/siesta/database But 'nacho create-database' doesn't work. Looking in source code Siesta::DBI uses @Siesta::Config::STORAGE list which gets defined in Siesta::Config::load_from() which is being called only if you have config file (even empty): __PACKAGE__->load_from( $CONFIG_FILE ) if -e $CONFIG_FILE; It seems if you don't have config file even if defaults are defined they are not used. I've just tried to create empty config file and 'nacho create-database' worked -- Ilya Martynov, ilya@xxxxxxx.xxx CTO IPonWEB (UK) Ltd Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net Personal website - http://martynov.orgThere's stuff above here
Generated at 13:56 on 01 Jul 2004 by mariachi 0.52