summaryrefslogtreecommitdiffstats
path: root/src/com/joshwalters/bookcatalog/bookdatabase/BookDatabase.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/joshwalters/bookcatalog/bookdatabase/BookDatabase.java')
-rw-r--r--src/com/joshwalters/bookcatalog/bookdatabase/BookDatabase.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/joshwalters/bookcatalog/bookdatabase/BookDatabase.java b/src/com/joshwalters/bookcatalog/bookdatabase/BookDatabase.java
index 9f06aba..352adf7 100644
--- a/src/com/joshwalters/bookcatalog/bookdatabase/BookDatabase.java
+++ b/src/com/joshwalters/bookcatalog/bookdatabase/BookDatabase.java
@@ -211,12 +211,13 @@ public class BookDatabase {
* @param Price
* @param Publisher
* @param Subject
+ * @param Notes
* @throws SQLException
* @throws BookAlreadyInDatabase
*/
public void insertBook(String Title, String Author, String Date,
String Description, String ISBN, String Price, String Publisher,
- String Subject) throws SQLException, BookAlreadyInDatabase {
+ String Subject, String Notes) throws SQLException, BookAlreadyInDatabase {
// Check to see if the book is in the database
if (!isBookInDatabase(ISBN)) {
// The SQL statement
@@ -231,8 +232,7 @@ public class BookDatabase {
preparedStatement.setString(6, Price);
preparedStatement.setString(7, Publisher);
preparedStatement.setString(8, Subject);
- // Set the notes for the book blank by default.
- preparedStatement.setString(9, "");
+ preparedStatement.setString(9, Notes);
if (preparedStatement.execute()) {
resultSet = statement.getResultSet();
if (resultSet != null) {