MySQL Stored Procedure 'range' as input parameter, cannot access the value -


i've found interesting problem stored procedure @ new company have joined.

see below, table pxvehiclehistory has column called range. range reserved word in mysql developer surrounded ticks. stuff, apart when insert executed range column null.

as stored procedure executing insert i've moved our code , boss off back.

i wondering, possible value of range in parameter?

create `pxvehiclehistory_insert`( in       pxvehiclehistoryid    char(38), in       regno                 varchar(50), in       makeid                char(38), in       modelid               char(38), in       rangeid                  char(38), in       derivativeid          char(38), in       colour                varchar(50), in       transmissionid        char(38), in       fueltypeid            char(38), in       customerid            char(38), in       enginesize            varchar(50), in       engineno              varchar(50), in       dfr                   datetime, in       createdby             char(38), in       noofdoors             varchar(50), in       vinno                 varchar(100), in       createddatetime       datetime, in       make                 varchar(50), in       model                 varchar(50), in       derivative                 varchar(100), in       `range`                 varchar(50)            ) begin     insert pxvehiclehistory     (       pxvehiclehistoryid               ,regno            ,makeid            ,modelid            ,rangeid            ,derivativeid            ,colourid            ,transmissionid            ,fueltypeid            ,customerid            ,enginesize            ,engineno            ,dfr            ,noofdoors            ,vinno            ,createddatetime            ,createdby            ,make            ,model            ,derivative            ,`range`      )     values     (       pxvehiclehistoryid      ,regno      ,makeid      ,modelid      ,rangeid      ,derivativeid      ,(select colourid colour upper(description)=upper(colour))      ,transmissionid      ,fueltypeid      ,customerid      ,enginesize      ,engineno      ,dfr      ,noofdoors      ,vinno      ,createddatetime      ,createdby      ,make     ,model     ,derivative     ,`range`     );  end 


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -