Hi Django dev,

I'm working on a MonetDB backend for Django called djonet:

https://github.com/gijzelaerr/djonet

Feel free to test it and let me know if it works for you. I think most 
stuff  is sort of working, but when I run the Django test suite with a 
djonet settings some errors pop up that I don't really know yet how to 
solve.

These problems are:
 * MonetDB supports a Decimal type with a maximum length of 18 digits.
 * No support for hyphens in column names
 * No support for != operation (only <>).

For now I just modified the Django test suite (see attachment), but that 
doesn't seem to be very constructive. Any suggestion on how to solve these 
problems?

thanks,

 - Gijs

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-developers/-/Cwp5KQkJpUEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

diff --git a/tests/modeltests/custom_methods/models.py b/tests/modeltests/custom_methods/models.py
index 4e3da58..7737c92 100644
--- a/tests/modeltests/custom_methods/models.py
+++ b/tests/modeltests/custom_methods/models.py
@@ -33,6 +33,6 @@ class Article(models.Model):
             SELECT id, headline, pub_date
             FROM custom_methods_article
             WHERE pub_date = %s
-                AND id != %s""", [connection.ops.value_to_db_date(self.pub_date),
+                AND id <> %s""", [connection.ops.value_to_db_date(self.pub_date),
                                   self.id])
         return [self.__class__(*row) for row in cursor.fetchall()]
diff --git a/tests/modeltests/reserved_names/models.py b/tests/modeltests/reserved_names/models.py
index 010649e..c6b5a0c 100644
--- a/tests/modeltests/reserved_names/models.py
+++ b/tests/modeltests/reserved_names/models.py
@@ -18,9 +18,9 @@ class Thing(models.Model):
     alter = models.CharField(max_length=1)
     having = models.CharField(max_length=1)
     where = models.DateField(max_length=1)
-    has_hyphen = models.CharField(max_length=1, db_column='has-hyphen')
+    has_hyphen = models.CharField(max_length=1, db_column='hashyphen')
     class Meta:
        db_table = 'select'
 
     def __unicode__(self):
-        return self.when
\ No newline at end of file
+        return self.when
diff --git a/tests/regressiontests/model_fields/models.py b/tests/regressiontests/model_fields/models.py
index 4dcfb17..2b876e0 100644
--- a/tests/regressiontests/model_fields/models.py
+++ b/tests/regressiontests/model_fields/models.py
@@ -46,7 +46,7 @@ class Whiz(models.Model):
     c = models.IntegerField(choices=CHOICES, null=True)
 
 class BigD(models.Model):
-    d = models.DecimalField(max_digits=38, decimal_places=30)
+    d = models.DecimalField(max_digits=18, decimal_places=17)
 
 class BigS(models.Model):
     s = models.SlugField(max_length=255)

Reply via email to