Projekt

Allgemein

Profil

GX-Bug #64506

Von Till Tepelmann vor mehr als 4 Jahren aktualisiert

Wenn man ein Kundenkonto erstellt, dass wird versucht die Tabelle customers_info mit dem aktuellen Datum zu füllen, da aber CodeIgniter die Funktion "NOW()" mit Anführungszeichen versieht, funktioniert der SQL Befehl nicht. 
 Manche SQL Server ignorieren den Fehler aber einige wie z.B. MariaDB 10.0.0 die Strict aktiviert haben, produzieren einen Fehler und die Kundenregistrierung funktioniert dann nicht mehr. 
 Da der Zusätzliche SQL Befehl nicht benötigt wird, da das aktuelle Datum bereits durch das einfügen eines Datensatzes geschrieben wurde, ist es nicht nötig das mit einem extra SQL Befehl noch einmal zu setzen. Die Lösung ist daher recht simpel. 
 Der zusätzliche Befehl wird einfach entfernt, sodass kein Fehler mehr produziert wird. 


 If you create a customer account that tries to fill the table customers_info with the current date, but CodeIgniter quotes the function "NOW()", the SQL command does not work. 
 Some SQL servers ignore the error but some like e.g. MariaDB 10.0.0 that have Strict enabled produce an error and the customer registration doesn't work anymore. 
 Since the Additional SQL command is not needed, since the current date has already been written by inserting a record, it is not necessary to set it again with an extra SQL command. The solution is therefore quite simple.

Zurück