Package: sqlobject
Version: 0.9.0-1
Severity: normal
Tags: patch, upstream

Hi,

the attached patch fixes a tiny typo in the class definitions for
SOTinyIntCol & Co. Without it, the new col types are created, but still
with type 'INT'.

I already reported the bug upstream, see
<https://sourceforge.net/tracker/?func=detail&atid=540674&aid=1735900&group_id=74338>.
But it would be nice if you could include the fix with your next upload,
in case you do one before a new upstream version is released.

Cheers, Til
Index: sqlobject/col.py
===================================================================
--- sqlobject/col.py	(revision 2717)
+++ sqlobject/col.py	(working copy)
@@ -631,28 +631,28 @@
     baseClass = SOIntCol
 
 class SOTinyIntCol(SOIntCol):
-    def _sqlTyps(self):
+    def _sqlType(self):
         return self.addSQLAttrs("TINYINT")
 
 class TinyIntCol(Col):
     baseClass = SOTinyIntCol
 
 class SOSmallIntCol(SOIntCol):
-    def _sqlTyps(self):
+    def _sqlType(self):
         return self.addSQLAttrs("SMALLINT")
 
 class SmallIntCol(Col):
     baseClass = SOSmallIntCol
 
 class SOMediumIntCol(SOIntCol):
-    def _sqlTyps(self):
+    def _sqlType(self):
         return self.addSQLAttrs("MEDIUMINT")
 
 class MediumIntCol(Col):
     baseClass = SOMediumIntCol
 
 class SOBigIntCol(SOIntCol):
-    def _sqlTyps(self):
+    def _sqlType(self):
         return self.addSQLAttrs("BIGINT")
 
 class BigIntCol(Col):

Reply via email to