Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 30. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  (Newbie) Timestamp problem when adding

phpMyEdit Configuration     (Newbie) Timestamp problem when adding
Odoslať novú tému   Odpovedať na tému    
 
mysty     Založený: 09.05.2008   Príspevky: 1  
Príspevok Zaslal: 2008-05-09 12:00
Návrat hore  Odpovedať s citátom     

Hi,

I have a fair bit of linux experience, but I am a total newbie so far as MySql is concerned. I have been trying to set up a really simple database for collaborative input.

I am using my shell provider's MySQL reported by phpMyAdmin as Server version: 4.1.20.

I used phpMyAdmin to set up the database which has just 3 fields.

"Question" type = text
"Updated" type = timestamp [ Default = CURRENT_TIMESTAMP / Attribute ON UPDATE CURRENT_TIMESTAMP ]
"ID" type = mediumint(8) UNSIGNED auto_increment

I don't really need the ID field, but I included it because phyMyEdit wanted a unique numerical identifier.

From the console I read in about 65,000 records [ LOAD DATA LOCAL INFILE "/home/me/data INTO TABLE testbase (Question); ] and use the defaults provided by phpMyEditSetup.php.

Everthing works perfectly, except that when I "Add" a Question via phyMyEdit the timestamp is all zeros. It becomes the actual date only on a subsequent "Change" of the entry. I see this behaviour only when using phyMyEdit. If I input the same data using phpMyAdmin's Insert function, or directly from the console [INSERT INTO testbase values ("TESTVAL", NULL, NULL)], then the timestamp works as it should.

Did I screw up somewhere?

Thanks

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov