Deleting a feed...

Support requests, bug reports, etc. go here. Dedicated servers / VDS hosting only
h3

Deleting a feed...

Postby h3 » 14 Sep 2005, 09:10

I had a little trouble with 1.0.4 - the db connect string expects a host param, but I have Pg listening on domain socket only. So I did this:

Code: Select all

--- tt-rss-1.0.4/db.php 2005-09-07 10:18:39.000000000 -0700
+++ ttr/db.php 2005-09-13 22:03:33.000000000 -0700
@@ -5,7 +5,11 @@
 function db_connect($host, $user, $pass, $db) {
        if (DB_TYPE == "pgsql") {       
                         
-               return pg_connect("host=$host dbname=$db user=$user password=$pass");
+               $string = "dbname=$db user=$user password=$pass";
+               if($host) {
+                       $string .= "host=$host";
+               }
+               return pg_connect($string);
 
        } else if (DB_TYPE == "mysql") {
                $link = mysql_connect($host, $user, $pass);

h3

Postgres listening on domain socket

Postby h3 » 14 Sep 2005, 09:11

DRAT. Sorry about the misleading topic title above.

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Postby fox » 14 Sep 2005, 10:42

thanks, integrated. :)

h3
Bear Rating Trainee
Bear Rating Trainee
Posts: 3
Joined: 14 Sep 2005, 13:12

Postby h3 » 14 Sep 2005, 13:17

I saw the darcs entry and noticed this:

Code: Select all

$stripng .= "host=$host";


Shouldn't that be "$string"?

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Postby fox » 14 Sep 2005, 21:36

Yeah. Fixed. :)

Phpbb mangles tabs so including diffs right in the post is probably not the best idea...


Return to “Support”

Who is online

Users browsing this forum: No registered users and 8 guests