Bluehost.com Web Hosting $6.95

MySQL skipping one column with LOAD DATA INFILE

This is a discussion on MySQL skipping one column with LOAD DATA INFILE within the MySQL Database forums, part of the Database Forums category; Hello all, I am troubleshooting a maddening problem with MySQL 5.0.18-nt on my XP Pro dev box. ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-13-2006
Ray
 
Posts: n/a
Default MySQL skipping one column with LOAD DATA INFILE

Hello all,

I am troubleshooting a maddening problem with MySQL 5.0.18-nt on my XP
Pro dev
box. When running a LOAD DATA INFILE... command, it works correctly
when
executed from the MySQL command line, but skips one column (yet loads
the rest
of the table normally) when the exact same command is run from within
PHP5.

Has anyone experienced this? Or better yet, resolved it? Anybody know
why it's
happening?

The table in question is:

CREATE TABLE clean_events (
id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY
KEY,
record_status ENUM('INCOMPLETE','NEW','OK') NOT NULL DEFAULT
'INCOMPLETE',
recycle_status ENUM('ACTIVE','RECYCLED','DELETED') NOT NULL
DEFAULT
'ACTIVE',
event_name VARCHAR(255) DEFAULT NULL,
artist_ids VARCHAR(255) DEFAULT NULL,
venue_id INT(10) UNSIGNED NOT NULL DEFAULT '0',
start_date DATE NOT NULL DEFAULT '0000-00-00',
end_date DATE NOT NULL DEFAULT '0000-00-00',
ticket_urls TEXT,
notes TEXT
);

The 'artist_ids' column is the one being skipped.

Any ideas?

Regards,
-Ray

Reply With Quote
  #2 (permalink)  
Old 10-14-2006
Jerry Stuckle
 
Posts: n/a
Default Re: MySQL skipping one column with LOAD DATA INFILE

Ray wrote:
> Hello all,
>
> I am troubleshooting a maddening problem with MySQL 5.0.18-nt on my XP
> Pro dev
> box. When running a LOAD DATA INFILE... command, it works correctly
> when
> executed from the MySQL command line, but skips one column (yet loads
> the rest
> of the table normally) when the exact same command is run from within
> PHP5.
>
> Has anyone experienced this? Or better yet, resolved it? Anybody know
> why it's
> happening?
>
> The table in question is:
>
> CREATE TABLE clean_events (
> id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY
> KEY,
> record_status ENUM('INCOMPLETE','NEW','OK') NOT NULL DEFAULT
> 'INCOMPLETE',
> recycle_status ENUM('ACTIVE','RECYCLED','DELETED') NOT NULL
> DEFAULT
> 'ACTIVE',
> event_name VARCHAR(255) DEFAULT NULL,
> artist_ids VARCHAR(255) DEFAULT NULL,
> venue_id INT(10) UNSIGNED NOT NULL DEFAULT '0',
> start_date DATE NOT NULL DEFAULT '0000-00-00',
> end_date DATE NOT NULL DEFAULT '0000-00-00',
> ticket_urls TEXT,
> notes TEXT
> );
>
> The 'artist_ids' column is the one being skipped.
>
> Any ideas?
>
> Regards,
> -Ray
>


You missed two important pieces, Ray.

What do your data and your LOAD FILE command look like?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 09:55 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0