~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic-proposed

« back to all changes in this revision

Viewing changes to pgadmin/pgscript/expressions/pgsGreaterEqual.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2011-06-07 23:03:54 UTC
  • mfrom: (1.3.1 upstream) (13 sid)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110607230354-3td4j9y71u4ahcvj
Tags: 1.14.0~beta1-1
* New upstream development release, adding Build-Depends on
  postgresql-server-dev-all >= 117~.
* Add Build-Depends on quilt, (un)patch to debian/rules and patch for fixing
  the include for kwlist.h in pgadmin/db/keywords.c.
* Add pg_config --includedir-server output to CPPFLAGS.
* Remove unrecognized configure options: --with-wx-config,
  --with-pgsql-include, --enable-gtk2, --enable-unicode.
* Clean up manually the files that are left behind after the broken
  distclean.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////
2
2
//
3
3
// pgScript - PostgreSQL Tools
4
 
// 
5
 
// Copyright (C) 2002 - 2010, The pgAdmin Development Team
 
4
//
 
5
// Copyright (C) 2002 - 2011, The pgAdmin Development Team
6
6
// This software is released under the PostgreSQL Licence
7
7
//
8
8
//////////////////////////////////////////////////////////////////////////
13
13
 
14
14
#include "pgscript/objects/pgsVariable.h"
15
15
 
16
 
pgsGreaterEqual::pgsGreaterEqual(const pgsExpression * left, const pgsExpression * right) :
 
16
pgsGreaterEqual::pgsGreaterEqual(const pgsExpression *left, const pgsExpression *right) :
17
17
        pgsOperation(left, right)
18
18
{
19
 
        
 
19
 
20
20
}
21
21
 
22
22
pgsGreaterEqual::~pgsGreaterEqual()
23
23
{
24
 
        
 
24
 
25
25
}
26
26
 
27
 
pgsExpression * pgsGreaterEqual::clone() const
 
27
pgsExpression *pgsGreaterEqual::clone() const
28
28
{
29
29
        return pnew pgsGreaterEqual(*this);
30
30
}
31
31
 
32
 
pgsGreaterEqual::pgsGreaterEqual(const pgsGreaterEqual & that) :
 
32
pgsGreaterEqual::pgsGreaterEqual(const pgsGreaterEqual &that) :
33
33
        pgsOperation(that)
34
34
{
35
35
 
36
36
}
37
37
 
38
 
pgsGreaterEqual & pgsGreaterEqual::operator =(const pgsGreaterEqual & that)
 
38
pgsGreaterEqual &pgsGreaterEqual::operator =(const pgsGreaterEqual &that)
39
39
{
40
40
        if (this != &that)
41
41
        {
49
49
        return wxString() << m_left->value() << wxT(" >= ") << m_right->value();
50
50
}
51
51
 
52
 
pgsOperand pgsGreaterEqual::eval(pgsVarMap & vars) const
 
52
pgsOperand pgsGreaterEqual::eval(pgsVarMap &vars) const
53
53
{
54
54
        // Evaluate operands
55
55
        pgsOperand left(m_left->eval(vars));
56
56
        pgsOperand right(m_right->eval(vars));
57
 
        
 
57
 
58
58
        // Return the result
59
59
        return (*left >= *right);
60
60
}