[sqlserver] provide a specific implementation for sql_current_date (closes #235748)

authorAurelien Campeas <aurelien.campeas@logilab.fr>
changeset022863cf9433
branchdefault
phasepublic
hiddenno
parent revision#f297b86d24b5 [pkg] Bump to 1.12.0
child revision#7d01f108186c update date
files modified by this revision
sqlserver2005.py
# HG changeset patch
# User Aurelien Campeas <aurelien.campeas@logilab.fr>
# Date 1397146095 -7200
# Thu Apr 10 18:08:15 2014 +0200
# Node ID 022863cf9433fd9ce81176a4531659c97ac8b7d5
# Parent f297b86d24b5628eadb88553421c96b7be6d52c1
[sqlserver] provide a specific implementation for sql_current_date (closes #235748)

diff --git a/sqlserver2005.py b/sqlserver2005.py
@@ -92,10 +92,14 @@
1          return [[sys.executable, os.path.normpath(__file__),
2                  "_SqlServer2005FuncHelper._do_restore", dbhost or self.dbhost,
3                   dbname or self.dbname, backupfile],
4                  ]
5 
6 +    def sql_current_date(self):
7 +        """Return sql for the current date. """
8 +        return 'GETDATE()'
9 +
10      def _index_names(self, cursor, table, column):
11          """
12          return the list of index_information for table.column
13          index_information is a tuple:
14          (name, index_type, is_unique, is_unique_constraint)