チェンジセット 94: trunk/install/perl/mklocalizeddir.pl
- コミット日時:
- 2010/02/28 22:28:26 (15 年前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
trunk/install/perl/mklocalizeddir.pl
r1 r94 16 16 use DBI; 17 17 use DBD::Pg; 18 18 use DBD::SQLite; 19 19 20 20 $path = $0; 21 21 $path =~ s/mklocalizeddir.pl$//i; 22 if ($p wdne "./"){22 if ($path ne "./"){ 23 23 push( @INC, "$path"); 24 24 } … … 43 43 44 44 #接続 45 my $data_source = sprintf("dbi:%s:dbname=%s;host=%s;port=%d", 46 $DBDriv,$DBName,$DBHost,$DBPort); 47 $dbh = DBI->connect($data_source,$DBUser,$DBPass) ||die $DBI::error;; 45 $dbh = DBI->connect($DSN,$DBUser,$DBPass) ||die $DBI::error;; 48 46 49 47 #検索 50 $DBQuery = "select title from foltia_program where tid=$tid "; 51 $sth = $dbh->prepare($DBQuery); 52 $sth->execute(); 48 $sth = $dbh->prepare($stmt{'mklocalizeddir.1'}); 49 $sth->execute($tid); 53 50 @subticount= $sth->fetchrow_array; 54 51 $title = $subticount[0] ;