Skip to content

Commit 892a50a

Browse files
authored
Removed unnecessary query prepare logic
1 parent b400909 commit 892a50a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

SQLtoObject/SQLtoObject.cls

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ ClassMethod Build(pQuery, pNamespace As %String = "", pMode As %String = 0, pDia
3333
set tStatement = ##class(%SQL.Statement).%New(pMode)
3434
// Set the dialect of the statement
3535
set tStatus = tStatement.%DialectSet(pDialect)
36-
// Set the size of our array that will hold the statements
37-
set query = 1
38-
set query(1) = pQuery
3936
set qStatus = tStatement.%Prepare(pQuery)
4037
if qStatus '= 1 {
4138
write "%Prepare failed:" do $System.Status.DisplayError(qStatus) quit

0 commit comments

Comments
 (0)