source: people/peter.buschman/backup_monitoring/dal/dialects/mysql.py@ 976

Last change on this file since 976 was 976, checked in by peter, on Dec 6, 2011 at 10:19:33 AM

Raw checkin of current NetBackup / TSM parsing code.

File size: 821 bytes
RevLine 
[976]1#
2# SQL Dialect for MySQL
3#
4import generic
5
6class Dialect(generic.Dialect):
7
8 def __init__(self, *args, **kwargs):
9
10 generic.Dialect.__init__(self, *args, **kwargs)
11
12 if 'version' not in kwargs:
13 self.version = '5'
14 else:
15 self.version = kwargs['version']
16
17 self.name = 'MySQL Version %s' % (self.version)
18
19 #
20 # Minimum and Maximum DATETIME values
21 #
22 self.mindatetime = '1970-01-01 00:00:00'
23 self.maxdatetime = '2038-01-19 03:14:07'
24
25 #
26 # Maximum VARCHAR length
27 #
28 self.maxvarchar = 'VARCHAR(65535)'
29
30 #
31 # Statement Terminator
32 #
33 self.go = ';'
34
35 #
36 # Timestamp Data Type
37 #
38 self.timestamp = 'TIMESTAMP'
Note: See TracBrowser for help on using the repository browser.