Menu

#17 Create Tables Script has invalid DDL for MySQL 5

v1.0_(example)
open
None
5
2021-09-17
2021-09-17
Jim Doyle
No

CREATE TABLE TBL_RFS_FIELDSELECTION
(
RECORDID integer,
CHILD_KEY smallint,
FIELD_NO smallint,
BOOLEAN_OPERATOR smallint,
FIELD_NAME varchar,
OPERATOR char(2),
FIELD_VALUE varchar
)
;
** Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' OPERATOR char(2), FIELD_VALUE varchar )' at line 1


Solution: Add field limits:
CREATE TABLE TBL_RFS_FIELDSELECTION
(
RECORDID integer,
CHILD_KEY smallint,
FIELD_NO smallint,
BOOLEAN_OPERATOR smallint,
FIELD_NAME varchar(255),
OPERATOR char(2),
FIELD_VALUE varchar(255)
);

Discussion

  • Bruce Martin

    Bruce Martin - 2021-09-17

    Will do

     
  • Bruce Martin

    Bruce Martin - 2021-09-17
    • assigned_to: Bruce Martin
     
  • Bruce Martin

    Bruce Martin - 2021-09-17

    A hack that may work is The Sql is stored in

    • Windows: C:\Program Files\RecordEdit\Generic\SQL\Create_RecordEdit.Sql
    • Linux: <home>/RecordEdit/Generic/SQL/Create_RecordEdit.Sql</home>

      So it can be updated.

      In the RecordEditor lib directory there is a bat / shell script runGenericInstall.bat/sh that will run the installer again

      RecordEditor lib directory: C:\Program Files\RecordEdit\Generic\lib
      or <home>/RecordEdit/Generic/lib/</home>

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB