Skip to content

Commit 64db9e6

Browse files
author
synapticloop
committed
fixed select clause bean null connection
1 parent 57f5c53 commit 64db9e6

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

editor.html

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!doctype html>
2+
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>*.h2zero file editor</title>
7+
8+
<script src="https://code.jquery.com/jquery-2.2.1.min.js"/></script>
9+
<!--[if lt IE 9]>
10+
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11+
<![endif]-->
12+
</head>
13+
14+
<body>
15+
<h1>*.h2zero editor</h1>
16+
17+
<h2>Editor</h2>
18+
<div id="content-editor">
19+
</div>
20+
21+
<h2>Output</h2>
22+
<div id="content-output">
23+
</div>
24+
</body>
25+
</html>

src/main/resources/snippet/finder/user-finders-select-clause.templar

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
) throws H2ZeroFinderException, SQLException {{{\n}
2121

2222
{\t}{\t}boolean hasConnection = (null != connection);{\n}
23+
{\t}{\t}if(!hasConnection) {{{\n}
24+
{\t}{\t}{\t}connection = ConnectionManager.getConnection();{\n}
25+
{\t}{\t}}{\n}
26+
{\n}
2327
{\t}{\t}String statement = null;{\n}
2428
{\n}
2529
{\t}{\t}// first find the statement that we want{\n}

0 commit comments

Comments
 (0)