Skip to content

Harmindar update#6

Open
usaygij wants to merge 6 commits into
masterfrom
harmindar-update
Open

Harmindar update#6
usaygij wants to merge 6 commits into
masterfrom
harmindar-update

Conversation

@usaygij
Copy link
Copy Markdown
Contributor

@usaygij usaygij commented Nov 18, 2019

Added Enum code with test cases, replaced arbitrary constant values with enum values.

logger.error("failed to insert " + query)
-1
DatabaseError.ConstraintViolation
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice

val rs: ResultSet = statement.executeQuery(query)
val rs: ResultSet =
getConnection.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY).executeQuery(query)
if (!rs.first()) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

comment on flags being used - what is the intention

p.opening_ts after new Date()
}
def deletePoll(): Int = {
def deletePoll(): Any = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Type should not be made Any

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