Click here to get back home

Creating FULLTEXT index OK on command line, but NOT with DBI...?

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Creating FULLTEXT index OK on command line, but NOT with DBI...? atcproductions 03-12-2005
Get Chitika Premium
Posted by atcproductions on March 12, 2005, 6:24 am
Please log in for more thread options


Experts,

Given a script that uses the following format to create tables on the
fly:

CREATE TABLE $tName (
id int(11) unsigned NOT NULL auto_increment PRIMARY KEY,
[...]
p_MSG text,
[...]
notifyLvl tinyint unsigned,
FULLTEXT KEY p_MSG (p_MSG)
)TYPE=MyISAM

The table is created no problem, BUT the FULLTEXT directive is ignored!
I have to manually add them with:

mysql> ALTER TABLE t20050224 ADD FULLTEXT KEY p_MSG (p_MSG);
Query OK, 303300 rows affected (1 min 7.77 sec)
Records: 303300 Duplicates: 0 Warnings: 0

I then do a:

mysql> show create table t20050224;

| t20050224 |CREATE TABLE `t20050224` (
`id` int(11) unsigned NOT NULL auto_increment,
[...]
`p_MSG` text,
[...]
`notifyLvl` tinyint(3) unsigned default NULL,
PRIMARY KEY (`id`),
FULLTEXT KEY `p_MSG` (`p_MSG`)
) TYPE=MyISAM |

...and it looks fine (once I've added the FULLETXT index manually)!

Clearly not a problem with MySQL, right? Then why are commands treated
differently when using DBI/DBD?

And more importantly, how can one execute a CREATE TABLE command and
only have SOME of the directives used, yet without failure of the
entire command?

TIA!



Similar ThreadsPosted
Search for a job online from command line May 31, 2007, 5:44 am
Search eBay from command line May 31, 2007, 11:33 am
use of xml in perl application to describe command line logic December 20, 2005, 11:03 am
GD demo cgi script works on command line but not on webserver. June 14, 2006, 5:07 am
Creating Calendar?? October 6, 2004, 12:37 am
Creating Thumbnails May 22, 2005, 5:18 pm
Question about creating modules May 27, 2006, 4:50 pm
Creating spokes with SVG::TT::Graph::Pie November 15, 2006, 4:29 pm
Perl:CGI - Creating a Please wait message February 16, 2007, 11:13 am
SOAP::Lite creating remote objects March 29, 2006, 9:51 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap