Skip to content

Create tests to fix #473#1269

Merged
simonharrer merged 10 commits into
masterfrom
fix-473
Apr 21, 2016
Merged

Create tests to fix #473#1269
simonharrer merged 10 commits into
masterfrom
fix-473

Conversation

@simonharrer

@simonharrer simonharrer commented Apr 21, 2016

Copy link
Copy Markdown
Contributor

@simonharrer

Copy link
Copy Markdown
Contributor Author

Possible solution: use prepared statements, which should solve this issue automatically. And they should be faster and safer to execute as well.

@Siedlerchr

Copy link
Copy Markdown
Member

@simonharrer Yep, I would support that. And second you could use them for MYSQL as well

@simonharrer

Copy link
Copy Markdown
Contributor Author

Another issue: the we currently support the export of a JabRef database to an SQL file using the syntax for MySQL or PostgreSQL. But this SQL file does not contain the correct escape logic, and it is very hard to get this info out of JDBC without a database connection. Hence, I would suggest to remove these actions, as I cannot see how they are useful without the correct escape logic.

@simonharrer simonharrer added status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs component: cleanup-ops dev: code-quality Issues related to code or architecture decisions labels Apr 21, 2016
}

}
//Unfortunatley, AutoCloseable throws only Exception

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove comment

@stefan-kolb

Copy link
Copy Markdown
Member

LGTM 👍

@simonharrer simonharrer merged commit 34494bb into master Apr 21, 2016
@simonharrer simonharrer deleted the fix-473 branch April 21, 2016 19:22
Siedlerchr added a commit to Siedlerchr/jabref that referenced this pull request Apr 22, 2016
* master:
  Syntaxfix
  Updated jabref_tr.properties
  Cleanup now uses active preferences (JabRef#1261)
  Create tests to fix JabRef#473 (JabRef#1269)
  Fix JabRef#1268 Canceling an import into current/new database still triggers an import
  Remove some unused code in ImportInspector
  Small errors
  Replace general get/put/remove metadata calls with typed versions

# Conflicts:
#	src/main/java/net/sf/jabref/sql/SQLUtil.java
#	src/main/java/net/sf/jabref/sql/exporter/DatabaseExporter.java
#	src/test/java/net/sf/jabref/sql/DatabaseImportExportTests.java
@tobiasdiez tobiasdiez mentioned this pull request Aug 15, 2016
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: cleanup-ops dev: code-quality Issues related to code or architecture decisions [outdated] type: bug Confirmed bugs or reports that are very likely to be bugs status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants