Search found 10 matches

by moj
Sat Feb 05, 2005 1:14 pm
Forum: Bug reports
Topic: Postgresql bugs (v 1.5 CVS)
Replies: 9
Views: 12221

Good suggestion!

But it could be som problems with comparisons and free text search. I don't know exactly how for example tsearch2 in postgres will handle & and ;, probably as non-word characters. Maybe similar problems in mysql also.

Another solution migth be to have a funtion to translate ...
by moj
Sat Feb 05, 2005 11:57 am
Forum: Bug reports
Topic: Postgresql bugs (v 1.5 CVS)
Replies: 9
Views: 12221

Ok, I see!

So, an additional variation with an alternate Swedish language encoded as utf-8 might solve my problem?

But isn't this a problem if I need to support several languages with different encodings. At least Postgresql will not accept to store characters outside the current encoding in the ...
by moj
Thu Feb 03, 2005 5:21 pm
Forum: Bug reports
Topic: Postgresql bugs (v 1.5 CVS)
Replies: 9
Views: 12221

Unicode in postgres

Don't know if I have some misconfiguration, but I get problems with Swedish characters in my unicode (utf8) database.

When I try to add a category with e.g. "ä" I get the following message:
ERROR: invalid byte sequence for encoding "UNICODE": 0xe46b74

I think that the ...
by moj
Wed Feb 02, 2005 6:32 pm
Forum: Bug reports
Topic: Postgresql bugs (v 1.5 CVS)
Replies: 9
Views: 12221

Thanks, seems to work ok now :-)

Just another minor postgres bug in the generated backup sql script. The comments must begin with "--" and not "#".
by moj
Tue Feb 01, 2005 9:32 pm
Forum: Bug reports
Topic: Postgresql bugs (v 1.5 CVS)
Replies: 9
Views: 12221

Postgresql bugs (v 1.5 CVS)

After an update (step 5) I got the following:

OPTIMIZE TABLE faqadminlog, faqadminsessions, faqcategories, faqcategoryrelations, faqchanges, faqcomments, faqdata, faqfragen, faqnews, faqsessions, faquser, faqvisits, faqvoting
I guess postgresql will need something like "VACUUM ANALYZE ...
by moj
Mon Jan 03, 2005 4:56 pm
Forum: General discussions
Topic: PHP5?...
Replies: 10
Views: 14874

...
Warning: pg_result() [function.pg-result]: Unable to jump to row 1 on PostgreSQL result index 20 in P:\www\virtualhosts\phpmyfaq\inc\pgsql.php on line 377
...

Solution

Line 377 in inc\pgsql.php:
$currentID = pg_result($result, 1, 'current_id');
change to:
$currentID = pg_result($result ...
by moj
Sun Jan 02, 2005 8:22 pm
Forum: Bug reports
Topic: Version 1.5 missing function m55
Replies: 1
Views: 4312

Version 1.5 missing function m55

Fatal error: Call to undefined function m55() in P:\www\virtualhosts\phpmyfaq\admin\user.addsave.php on line 25

Latest CVS, 2005-01-02
by moj
Sun Jan 02, 2005 8:12 pm
Forum: General discussions
Topic: PHP5?...
Replies: 10
Views: 14874

Yes, this seems to fix the reassign $this problem :-)

A few other problems (not related to php5) :
- I get doble linefeeds i all files. In some cases this will lead to problems when ther ins an extra empty line at the end, after "?>", e.g. in db.php and category.php. Maybe this could have something ...
by moj
Fri Dec 31, 2004 5:09 pm
Forum: General discussions
Topic: PHP5?...
Replies: 10
Views: 14874

Still problems with php5... (CVS version from 2004-12-31)

I think the reassign of $this in the db class is illegal, in php5 $this is readonly.

This is my error message:
Fatal error: Cannot re-assign $this in P:\www\virtualhosts\phpmyfaq\inc\db.php on line 59

The only workaround I can think of is ...
by moj
Mon Nov 08, 2004 6:46 pm
Forum: General discussions
Topic: PHP5?...
Replies: 10
Views: 14874

PHP5 in CVS, db class problems

Just downloaded CVS version to test the Postgres implementation, but I didn't get too far.

I found a couple of problems i the db class:

1. I had to insert a str_replace to replace backslashes to be able to include correct database class.

2 More fatal, the reassign of $this is not allowed in php5 ...