Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jdbc 50 add test suite prep statement param types #169

Conversation

rpastrana
Copy link
Member

No description provided.

Signed-off-by: Pastrana, Rodrigo <rodrigo.pastrana@lexisnexis.com>
Signed-off-by: Pastrana, Rodrigo <rodrigo.pastrana@lexisnexis.com>
Example:
in sql script:
001SELECTALL-PREPSTATEMENT-2params=[true;1;path\\to\\Testparams.csv] select * from thor::books::processed where id = ?
in Testparams.csv:
 7, Int
 8, Long
 9, Long
 10, Integer

Signed-off-by: Pastrana, Rodrigo <rodrigo.pastrana@lexisnexis.com>
@rpastrana
Copy link
Member Author

@garonsky please review 2ff8faa

- Moved logic to Utils class
- Covered greater sql types subset

Signed-off-by: Pastrana, Rodrigo <rodrigo.pastrana@lexisnexis.com>
@rpastrana
Copy link
Member Author

@garonsky please look over new changes.

@@ -123,6 +134,63 @@ public ResultSet executeQuery() throws SQLException
return result;
}

public static String primitiveToString(Object x) throws IOException

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double check this function throws

Signed-off-by: Pastrana, Rodrigo <rodrigo.pastrana@lexisnexis.com>
@rpastrana rpastrana merged commit b69eab1 into hpcc-systems:master Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants