-
Notifications
You must be signed in to change notification settings - Fork 195
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
4008 hotfix for Sql queries #4088
Conversation
@@ -849,7 +849,7 @@ namespace openstudio{ | |||
const std::string rowName = t_monthOfYear.valueDescription(); | |||
|
|||
|
|||
const std::string& s = R"(SELECT Value FROM TabularDataWithStrings WHERE | |||
const std::string& s = R"(SELECT Value FROM TabularDataWithStrings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First double WHERE
@@ -870,7 +870,7 @@ namespace openstudio{ | |||
" {AT MAX/MIN}"; | |||
const std::string rowName = t_monthOfYear.valueDescription(); | |||
|
|||
const std::string& s = R"(SELECT Value FROM TabularDataWithStrings WHERE | |||
const std::string& s = R"(SELECT Value FROM TabularDataWithStrings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Second double where.
return execAndReturnFirstDouble(s); | ||
} | ||
|
||
|
||
OptionalDouble SqlFile_Impl::annualTotalCost(const FuelType& fuel) const | ||
{ | ||
if (fuel == FuelType::Electricity){ | ||
return execAndReturnFirstDouble("SELECT Value from tabulardatawithstrings where (reportname = 'Economics Results Summary Report') and (ReportForString = 'Entire Facility') and (TableName = 'Annual Cost') and (ColumnName ='Electricity') and (((RowName = 'Cost') and (Units = '~~$~~')) or (RowName = 'Cost (~~$~~)'))"); | ||
return execAndReturnFirstDouble("SELECT Value from TabularDataWithStrings where (reportname = 'Economics Results Summary Report') and (ReportForString = 'Entire Facility') and (TableName = 'Annual Cost') and (ColumnName ='Electricity') and (((RowName = 'Cost') and (Units = '~~$~~')) or (RowName = 'Cost (~~$~~)'))"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Starting here it's just casing for tabulardatawithstrings
-> TabularDataWithStrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
CI Results for a754624:
|
Pull request overview
Pull Request Author
Add to this list or remove from it as applicable. This is a simple templated set of guidelines.
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)src/openstudio_lib/library/OpenStudioPolicy.xml
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.