1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -37,7 +37,8 @@ using namespace funcexp;
#define strcasecmp stricmp
#endif
namespace execplan {
namespace execplan
{
/**
* Constructors/Destructors
@ -46,10 +47,10 @@ IntervalColumn::IntervalColumn()
{}
IntervalColumn::IntervalColumn(SRCP& val, int intervalType):
fVal(val->clone()), fIntervalType(intervalType)
fVal(val->clone()), fIntervalType(intervalType)
{
// cout << "intervalType=" << fIntervalType << endl;
}
}
IntervalColumn::IntervalColumn( const IntervalColumn& rhs, const uint32_t sessionID):
ReturnedColumn(rhs, sessionID),
@ -62,18 +63,20 @@ IntervalColumn::IntervalColumn( const IntervalColumn& rhs, const uint32_t sessio
*/
const string IntervalColumn::toString() const
{
ostringstream output;
output << "INTERVAL" << endl;
if (fVal)
output << fVal->toString();
output << " IntervalType=" << fIntervalType << endl;
return output.str();
ostringstream output;
output << "INTERVAL" << endl;
if (fVal)
output << fVal->toString();
output << " IntervalType=" << fIntervalType << endl;
return output.str();
}
ostream& operator<<(ostream& output, const IntervalColumn& rhs)
{
output << rhs.toString();
return output;
output << rhs.toString();
return output;
}
} //namespace