GithubHelp home page GithubHelp logo

ArrayIndexOutOfBoundsException about neo HOT 2 CLOSED

heixiaoma avatar heixiaoma commented on June 20, 2024
ArrayIndexOutOfBoundsException

from neo.

Comments (2)

heixiaoma avatar heixiaoma commented on June 20, 2024
    String sql = "select * from telegram_gorup where name like %s";
    List<List<NeoMap>> execute = neo.execute(sql," '%b%'");

原来是替换规则出问题了,我这样写就好使了

from neo.

simonalong avatar simonalong commented on June 20, 2024

目前0.4.4之前的版本中,对含有%b、%h等等这些字符的sql有预处理(都是替换符使用),针对数据库支持的%c、%b这样来说目前算是个问题,因为sql中也会有一些这样的符号。因此这个也算是错误,之前已经发现在0.4.4版本中已经解决,做了简化,替换符只用%s,其他的都删除了

?作为占位符使用(同mybatis中的#{xxx})
%s 作为替换符使用(同mybatis中的${xxx})

from neo.

Related Issues (2)

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.