no message
authorrk <rk>
Tue, 28 Aug 2001 18:40:13 +0000 (18:40 +0000)
committerrk <rk>
Tue, 28 Aug 2001 18:40:13 +0000 (18:40 +0000)
dbscripts/pg_imageimport.pl

index 32088e5..d87e15a 100755 (executable)
@@ -8,7 +8,7 @@ if (!defined($ARGV[0])) {
 
 $dump="$ARGV[0]";
 
-my $conn = Pg::connectdb("dbname=nadiraktuell user=postgres host=192.168.4.8");
+my $conn = Pg::connectdb("dbname=indy user=indy host=192.168.4.8");
 ( PGRES_CONNECTION_OK eq $conn->status )
     and print "Pg::connectdb ........... ok\n"
     or  die   "Pg::connectdb ........... not ok: ", $conn->errorMessage;
@@ -53,7 +53,7 @@ while(<DUMP>) {
                                print $conn->errorMessage."\n";
                                $sql="INSERT INTO images (title,date,place,author,to_img_layout,to_img_type,is_classified,to_media_folder,to_img_color,comment,webdb_create,img_width,img_height,image_data,icon_data) ".
                                         "VALUES ('".$titel."','20010109','".$ort.
-                                        "','Castor X4','".$layout."','1','0','3','2','".$comment."',now(),'".$img_width."','".$img_height.
+                                        "','huh','".$layout."','1','0','3','2','".$comment."',now(),'".$img_width."','".$img_height.
                                         "','".$oid."','".$ioid."')";
                                print $sql."\n";
                                $conn->exec( $sql );