Small checkpoint 1 typo
This commit is contained in:
parent
1239b640c3
commit
58d563f176
|
@ -32,7 +32,7 @@ while((statement = parser.Statement()) != null){
|
||||||
}
|
}
|
||||||
// End-of-file. Exit!</pre>
|
// End-of-file. Exit!</pre>
|
||||||
|
|
||||||
<p>At this point, you'll need to figure out what kind of statement you're dealing with. For this project, we'll be working with <tt>Select</tt> and <tt>CreateTable</tt>. There are two ways to do this. JSqlParser defines a Visitor>instanceof</tt> relation:</p>
|
<p>At this point, you'll need to figure out what kind of statement you're dealing with. For this project, we'll be working with <tt>Select</tt> and <tt>CreateTable</tt>. There are two ways to do this: Visitor classes, or the <tt>instanceof</tt> relation. We strongly recommend using <tt>instanceof</tt>:</p>
|
||||||
<pre>if(statement instanceof Select) {
|
<pre>if(statement instanceof Select) {
|
||||||
Select selectStatement = (Select)statement;
|
Select selectStatement = (Select)statement;
|
||||||
// handle the select
|
// handle the select
|
||||||
|
|
Loading…
Reference in a new issue