Skip to content

Commit

Permalink
Fix for ODBC-125. Default parameters in stored procedures are not sup…
Browse files Browse the repository at this point in the history
…ported
  • Loading branch information
alexpotapchenko committed Jul 4, 2011
1 parent 4c18cf4 commit 825dd0b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions IscDbc/IscConnection.cpp
Expand Up @@ -1616,11 +1616,9 @@ int IscConnection::getNativeSql (const char * inStatementText, long textLength1,
throw SQLEXCEPTION( SYNTAX_ERROR, text );
}

int ret = buildParamProcedure ( ptIn, numIn );

if ( ret == -1 )
return statysModify;
else if ( canSelect )
int ret = 0; //buildParamProcedure ( ptIn, numIn );

if ( canSelect )
memcpy(savePtOut, "select * from ", 14);
else
memcpy(savePtOut, "execute procedure ", 18);
Expand Down

0 comments on commit 825dd0b

Please sign in to comment.