Code Monkey home page Code Monkey logo

Comments (4)

timmolter avatar timmolter commented on June 27, 2024

I'd love to help. Can you be more specific?

from yank.

solinad21 avatar solinad21 commented on June 27, 2024

i get this error:

java.sql.SQLException: Data truncation: Incorrect date value: '' for column 'fechacad' at row 1 Query: INSERT INTO inventarios (Cod_Mov, Cod_Almacen, Cod_Proveedor, Cod_Articulo, tipodesc, Cod_IVA, cod_sesion, claveEmpleado,Stock_Mov, descuento_Mov, Costo_Mov, prov_garantia, IVA,Fecha_Mov,Hora_Mov, Cod_Caja,Doc_Fuente, paquete,Tipo_Mov,desc_mov,num_serie,lote,fechacad) VALUES (null, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,?,?) Parameters: [[5, 1, 581, 1, 1, 13747, 12, 1, 0.0, 36.00, 0, 4.97, 2013-08-17, 12:43:00, 1050000099611, 99611, 0, S, V, , , ]]

i want set null to "fechacad" column.

i try with '', 'null', etc.

from yank.

timmolter avatar timmolter commented on June 27, 2024

it looks like you're passing in 22 parameters but your SQL statement is expecting 23. Is that the problem?

from yank.

solinad21 avatar solinad21 commented on June 27, 2024

not, in my code the params match ok.
i have double checked it.

I think the problem arises because the quotes are added automatically to the parameter.
and then the parameter is never passed as null (without quotes).
when I put directly the parameter to null the query runs perfectly.

from yank.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.