<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/jsqlparser/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/jsqlparser/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 26 May 2021 22:02:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jsqlparser/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>The parser has a problem parsing long Insert SQL.</title><link>https://sourceforge.net/p/jsqlparser/discussion/360150/thread/0e9d493cbd/?limit=25#28d8</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm using JSqlParser to parse a long INSERT statement, and it turned out that some values got dropped from the item list. I'm using Oracle, and the table consists of 200 columns of varchar2(400) type, in addition to an auto generated pk column. The INSERT statement is to insert 200 pieces of the msg "Mary has a little lamb, little lamb, little lamb." to the table. It turns out that, in the generated Statement object, the "columns" field contains all 201 columns, but the "itemList" field only contains 124 items. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jinxin Liu</dc:creator><pubDate>Wed, 26 May 2021 22:02:40 -0000</pubDate><guid>https://sourceforge.netff4fc511dee917dd0abeac39d5c9e4dba8a8d9e3</guid></item><item><title>Use of LookaheadSuccess exception</title><link>https://sourceforge.net/p/jsqlparser/discussion/360150/thread/4b3d189bd6/?limit=25#63cb</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Forgot to say I'm using version 1.4.&lt;/p&gt;
&lt;p&gt;Hmm, I don't  see class "CCJSqlParser"&lt;br/&gt;
at &lt;a href="https://github.com/JSQLParser/JSqlParser/tree/master/src/main/java/net/sf/jsqlparser/parser" rel="nofollow"&gt;https://github.com/JSQLParser/JSqlParser/tree/master/src/main/java/net/sf/jsqlparser/parser&lt;/a&gt;&lt;br/&gt;
even though it should be there?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Lichtin</dc:creator><pubDate>Fri, 13 Sep 2019 12:56:02 -0000</pubDate><guid>https://sourceforge.nete3097b01d35090947788a54cdce08be12518537b</guid></item><item><title>Use of LookaheadSuccess exception</title><link>https://sourceforge.net/p/jsqlparser/discussion/360150/thread/4b3d189bd6/?limit=25#889b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;LookaheadSuccess exception is used for some logic inside CCJSqlParser.&lt;/p&gt;
&lt;p&gt;This exception should be declared as "static"&lt;/p&gt;
&lt;p&gt;Currently a new instance is created for each parse() call.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Lichtin</dc:creator><pubDate>Fri, 13 Sep 2019 07:53:53 -0000</pubDate><guid>https://sourceforge.netb1c07b7a5247168b46c11437ba21405fcf2793c5</guid></item><item><title>How to find constraints in Create table statement</title><link>https://sourceforge.net/p/jsqlparser/discussion/360150/thread/8c3d1385b4/?limit=25#0cb9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am new to JsqlParser.. Can someone please guide in finding all the contraints of a table in Create table statement&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">pranob Gorain</dc:creator><pubDate>Mon, 02 Sep 2019 12:43:04 -0000</pubDate><guid>https://sourceforge.net03dc904867a33bcddec413eb8be65f92bfdd9803</guid></item><item><title>JSql Parser is not supporting key words like "unpivot", "for"</title><link>https://sourceforge.net/p/jsqlparser/discussion/360151/thread/b65a9560a8/?limit=25#f67b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Encountered " &amp;lt;s_identifier&amp;gt; "unpivot ""&lt;br/&gt;
Encountered " &amp;lt;s_identifier&amp;gt; "for "".&amp;lt;/s_identifier&amp;gt;&amp;lt;/s_identifier&amp;gt;&lt;/p&gt;
&lt;p&gt;The query we are using is:&lt;br/&gt;
SELECT Xaxis, Xaxiscode, Xaxissub, Yaxis&lt;br/&gt;
 FROM (&lt;br/&gt;
SELECT &lt;br/&gt;
  PLN_FNDATE.MONTHNAME_ENGLISH + ' ' + convert(varchar, PLN_FNDATE.&lt;span&gt;[YEAR]&lt;/span&gt;) as XAxis,&lt;br/&gt;
  convert(varchar, PLN_FNDATE.&lt;span&gt;[MONTH]&lt;/span&gt;) + '/' + convert(varchar, PLN_FNDATE.&lt;span&gt;[YEAR]&lt;/span&gt;) as XAxisCode,&lt;br/&gt;
  Convert(Numeric(5,2), SUM(CASE WHEN ORD.STATDAT5 &amp;lt;= ORD.DATGEWGER THEN  1 else 0 END) /   Convert(Numeric(9,2),COUNT(ORD.SYSCODE))) * 100 'Hit', &lt;br/&gt;
  Convert(Numeric(5,2), SUM(CASE WHEN ORD.STATDAT5 &amp;gt; ORD.DATGEWGER THEN  1 else 0 END) /   Convert(Numeric(9,2),COUNT(ORD.SYSCODE))) * 100 'Miss'&lt;br/&gt;
  from ORD&lt;br/&gt;
  INNER JOIN PLN_FNDATE on CONVERT(DATE, ORD.DATINGAVE) = CONVERT(DATE, PLN_FNDATE.THISDATE)&lt;br/&gt;
  where year(ORD.DATINGAVE) = year(getdate()) and ORD.STATDAT5 is not null and ORD.DATGEWGER is not null&lt;br/&gt;
    and ((&lt;span&gt;[&amp;amp;SEARCHFIELDS]&lt;/span&gt;) and (&lt;span&gt;[&amp;amp;FILTERFIELDS]&lt;/span&gt;))&lt;br/&gt;
GROUP BY&lt;br/&gt;
  PLN_FNDATE.&lt;span&gt;[YEAR]&lt;/span&gt;, PLN_FNDATE.&lt;span&gt;[MONTH]&lt;/span&gt;, PLN_FNDATE.MONTHNAME_ENGLISH&lt;br/&gt;
  ) ORDERDATA&lt;br/&gt;
     unpivot&lt;br/&gt;
    (&lt;br/&gt;
        Yaxis&lt;br/&gt;
       for Xaxissub in (&lt;span&gt;[Hit]&lt;/span&gt;,&lt;span&gt;[Miss]&lt;/span&gt;)&lt;br/&gt;
    ) PIVOTDATA&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mahender</dc:creator><pubDate>Fri, 18 Jan 2019 12:34:42 -0000</pubDate><guid>https://sourceforge.net6d3b290de49ab957c3defd7e7b75c52d77764331</guid></item><item><title>net.sf.jsqlparser.parser.ParseException: Encountered " "WITH" "WITH ""</title><link>https://sourceforge.net/p/jsqlparser/discussion/360151/thread/f7a80fd7/?limit=25#5885</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;HI,&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;select top 1 * FROM [dbo].[DeathMasterFile] WITH(NOLOCK)
when i try to use this query i am getting net.sf.jsqlparser.parser.ParseException: Encountered " "WITH" "WITH "" 
Was expecting one of:
&amp;lt;EOF&amp;gt; 
"AS" ...
"DO" ...
"ANY" ...
"KEY" ...
"PERCENT" ...
"END" ...
"JOIN" ...
"LEFT" ...
"CROSS" ...
"OPEN" ...
"FULL" ...
"TABLE" ...
"WHERE" ...
"FOR" ...
"PIVOT" ...
"XML" ...
"UNION" ...
"GROUP" ...
"INNER" ...
"ORDER" ...
"RIGHT" ...
"VALUE" ...
"HAVING" ...
"INSERT" ...
"VALUES" ...
"NATURAL" ...
"REPLACE" ...
"TRUNCATE" ...
"INTERSECT" ...
"CAST" ...
"EXCEPT" ...
"MINUS" ...
"OVER" ...
"PARTITION" ...
"EXTRACT" ...
"MATERIALIZED" ...
"START" ...
"CONNECT" ...
"PRIOR" ...
"SIBLINGS" ...
"COLUMN" ...
"NULLS" ...
"FIRST" ...
"LAST" ...
"ROWS" ...
"RANGE" ...
"FOLLOWING" ...
"ROW" ...
"COMMIT" ...
"SEPARATOR" ...
"CASCADE" ...
"NO" ...
"ACTION" ...
&amp;lt;K_DATETIMELITERAL&amp;gt; ...
"PRECISION" ...
";" ...
&amp;lt;S_IDENTIFIER&amp;gt; ...
&amp;lt;S_QUOTED_IDENTIFIER&amp;gt; ...
"," ...
"ORDER" ...
"ORDER" ...

Can you please correct it and let me know, Thanks!
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Karteek</dc:creator><pubDate>Wed, 22 Aug 2018 09:44:02 -0000</pubDate><guid>https://sourceforge.netd81a0526026d5292a03f578c04e1ab71b40b80a6</guid></item><item><title>SQL Server - COLLATE keyword</title><link>https://sourceforge.net/p/jsqlparser/discussion/360151/thread/6c897e30/?limit=25#eda9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;select colName COLLATE Latin1_General_CI_AS from tableName&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I am trying to parse the above select statement in which I got ParseExecption. How do I resolve it? If this is an issue, let me know the time frame on when it is getting fixed.&lt;/p&gt;
&lt;p&gt;Let me know, if any detail needed from my side.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Divya M&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Divya Madhiyazhagan</dc:creator><pubDate>Tue, 10 Jul 2018 06:31:48 -0000</pubDate><guid>https://sourceforge.net4b2cf6b1a97bc3b847b3c757462e1abbcab41605</guid></item><item><title>ColumnNamesFinder from expression</title><link>https://sourceforge.net/p/jsqlparser/discussion/360151/thread/accba151/?limit=25#313e</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Sorry where should I create a request? I forked the repo here if that's what you meant. &lt;a href="https://github.com/tenstriker/JSqlParser" rel="nofollow"&gt;https://github.com/tenstriker/JSqlParser&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nir Peterson</dc:creator><pubDate>Fri, 19 Jan 2018 17:32:20 -0000</pubDate><guid>https://sourceforge.netfa3c28f0f063d7a3c774a3c9aeb60ad14aa5dd09</guid></item><item><title>ColumnNamesFinder from expression</title><link>https://sourceforge.net/p/jsqlparser/discussion/360151/thread/accba151/?limit=25#a8e5</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any  method other then implementing Visior to get list of all columns from expression. I am trying to parse sql function. e.g. sum(t1.amount)/count(t1.name) and get all column names. i.e. {"t1.amount", "t1.name"} Thanks&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nir Peterson</dc:creator><pubDate>Thu, 18 Jan 2018 22:49:14 -0000</pubDate><guid>https://sourceforge.net078f0f99b69afa2e49e26286c93ca65bf6b71a5f</guid></item><item><title>ColumnNamesFinder</title><link>https://sourceforge.net/p/jsqlparser/discussion/360150/thread/ce2eea0a/?limit=25#fb19</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any easier method other then implementing Visior to get list of all columns from expression. I am trying to parse sql function. e.g. &lt;code&gt;sum(t1.amount)/count(t1.name)&lt;/code&gt; and get all column names. i.e. {"t1.amount", "t1.name"} Thanks &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nir Peterson</dc:creator><pubDate>Thu, 18 Jan 2018 22:21:17 -0000</pubDate><guid>https://sourceforge.net409626bfa557b50ba967acd7e534257b9dce08a3</guid></item></channel></rss>