Skip to content

Commit

Permalink
Fix array bound for sql lastDayOfMonth
Browse files Browse the repository at this point in the history
[#1306026]
  • Loading branch information
kbenne committed Dec 8, 2014
1 parent 80890f4 commit 31fdbe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EnergyPlus/SQLiteProcedures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ void SQLite::createSQLiteTimeIndexRecord(
intervalInMinutes = 60*24*lastDayOfMonth[month() - 1];
sqliteBindInteger(m_timeIndexInsertStmt, 1, m_sqlDBTimeIndex);
sqliteBindInteger(m_timeIndexInsertStmt, 2, month());
sqliteBindInteger(m_timeIndexInsertStmt, 3, lastDayOfMonth[month()]);
sqliteBindInteger(m_timeIndexInsertStmt, 3, lastDayOfMonth[month() - 1]);
sqliteBindInteger(m_timeIndexInsertStmt, 4, 24);
sqliteBindInteger(m_timeIndexInsertStmt, 5, 0);
sqliteBindNULL(m_timeIndexInsertStmt, 6);
Expand Down

6 comments on commit 31fdbe5

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

develop (kbenne) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed)

Build Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

develop (kbenne) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (1089 of 1089 tests passed)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

develop (kbenne) - x86_64-MacOS-10.9-clang: OK (1086 of 1086 tests passed)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

develop (kbenne) - x86_64-MacOS-10.9-clang-Debug: OK (1086 of 1086 tests passed)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

develop (kbenne) - i386-Windows-7-VisualStudio-12: OK (1089 of 1089 tests passed)

Build Badge Test Badge

@nrel-bot
Copy link

Choose a reason for hiding this comment

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

develop (kbenne) - Win64-Windows-7-VisualStudio-12: OK (1089 of 1089 tests passed)

Build Badge Test Badge

Please sign in to comment.