1
//////////////////////////////////////////////////////////////////////////
3
// pgScript - PostgreSQL Tools
4
// RCS-ID: $Id: pgsParenthesis.cpp 7758 2009-03-26 20:49:59Z dpage $
5
// Copyright (C) 2002 - 2009, The pgAdmin Development Team
6
// This software is released under the BSD Licence
8
//////////////////////////////////////////////////////////////////////////
12
#include "pgscript/expressions/pgsParenthesis.h"
14
#include "pgscript/objects/pgsVariable.h"
16
pgsParenthesis::pgsParenthesis(const pgsExpression * left) :
22
pgsParenthesis::~pgsParenthesis()
27
pgsExpression * pgsParenthesis::clone() const
29
return pnew pgsParenthesis(*this);
32
pgsParenthesis::pgsParenthesis(const pgsParenthesis & that) :
38
pgsParenthesis & pgsParenthesis::operator =(const pgsParenthesis & that)
42
pgsOperation::operator=(that);
47
wxString pgsParenthesis::value() const
49
return wxString() << wxT("(") << m_left->value() << wxT(")");
52
pgsOperand pgsParenthesis::eval(pgsVarMap & vars) const
55
pgsOperand left(m_left->eval(vars));