Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 1 of 1

Thread: How to get SQL literals after parsing in mySQL Connector/J ?

  1. #1
    Junior Member
    Join Date
    Jun 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to get SQL literals after parsing in mySQL Connector/J ?

    Hello,

    I am looking for a way to get SQL tokens/literals (such as: SELECT, FROM, UPDATE ; , -- , etc.) from the SQLquery after parsing, but just before sending it to the database for execution.
    I am looking in the source code of Connector/J driver, but all I found is ParseInfo class inside PreparedStatement, but can not find a way to get a list of SQL literals.
    If you know a way on how to do it, or a place where I can modify Connector/J, please let me know.


    I have found 'jsqlparser', but did not find a way to get sql tokens.

    Cheers!
    Last edited by amughost; June 21st, 2012 at 04:03 PM.


Similar Threads

  1. Bundling mysql-connector with my applet
    By corykendall in forum Java Applets
    Replies: 2
    Last Post: November 8th, 2013, 08:23 PM
  2. Help with XML Parsing
    By ur2cdanger in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: October 1st, 2011, 07:58 AM
  3. Parsing XML
    By jrookie in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 17th, 2011, 10:04 AM
  4. Question regarding XML Parsing
    By newbie in forum Java Theory & Questions
    Replies: 2
    Last Post: February 24th, 2011, 06:03 AM
  5. SCOM connector using Java
    By Thej in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: July 17th, 2009, 06:42 AM

Tags for this Thread