[pLog-svn] r4676 -plog/branches/lifetype-1.2/class/database/pdb/drivers

Mark Wu markplace at gmail.com
Fri Feb 2 19:42:43 EST 2007


Hi Oscar:

Another problem is, if we put the fulltext backlist in driver level.

Then, if  a "Chinese" locale use "UTF-8" encoding,  how can I put it into
back list? :(

Take Traditional Chinese for example,  we can use 2 kind of encodings: Big5
and UTF-8.

If put both of them into backlist, it will cause western user's lifetype can
not use fulltext engine, too. Because they use UTF-8 , too.

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> Oscar Renalias
> Sent: Saturday, February 03, 2007 7:30 AM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r4676 
> -plog/branches/lifetype-1.2/class/database/pdb/drivers
> 
> Right now the only way to turn it off is by "blacklisting" 
> your database character encoding in PDbMySQLDriver. And since 
> this is living at the database driver level and that has 
> nothing to do with the UI, I'm not sure that binding the 
> database driver class to the Config class is a good idea.
> 
> How about an extra optional parameter in the 
> config.properties.php file? Would that be good enough?
> 
> On 3 Feb 2007, at 01:26, Jon Daley wrote:
> 
> >  	Can we have a configuration option to turn this on and 
> off as well?
> >
> > On Fri, 2 Feb 2007, oscar at devel.lifetype.net wrote:
> >> Author: oscar
> >> Date: 2007-02-02 17:54:59 -0500 (Fri, 02 Feb 2007) New 
> Revision: 4676
> >>
> >> Modified:
> >>   plog/branches/lifetype-1.2/class/database/pdb/drivers/
> >> pdbdriverbase.class.php
> >>   plog/branches/lifetype-1.2/class/database/pdb/drivers/
> >> pdbmysqldriver.class.php
> >> Log:
> >> Added driver-specific support for FULLTEXT indexes, so now 
> the driver 
> >> can tell the user classes whether fulltext queries are 
> supported or 
> >> not. Fulltext is disabled by default in the base driver 
> class but the 
> >> MySQL driver will first check the database character encoding to 
> >> determine whether FULLTEXT is supported or not. The method 
> >> PDbMySQLDriver::isFullTextSupported() holds an array with 
> >> "blacklisted" character sets that don't support FULLTEXT but it 
> >> currently is set to empty (meaning that FULLTEXT is 
> supported accross 
> >> all mysql character sets so I'm hoping that Mark or somebody more 
> >> familiar with this will help me fill in the array.
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
> 



More information about the pLog-svn mailing list