Schema alter_field - check constraints

2018-05-02 Thread Maximiliano Robaina
Hi, Digging into schema migration code (and updating this to work with Firebird [1]) I see in _alter_field method [2] a validation for Change check constraints? Of course, this fails related to the test method "test_alter_field_default_dropped" because in Firebird check contraints are table

Re: django-firebird test expressions

2018-04-17 Thread Maximiliano Robaina
nd out a better solution. Thanks. > > On Tuesday, 17 April 2018 21:12:09 UTC+10, Maximiliano Robaina wrote: >> >> >> Hi Shai, >> >> Thank for the tip >> >> El martes, 17 de abril de 2018, 3:01:30 (UTC-3), Shai Berger escribió: >>> >

Re: django-firebird test expressions

2018-04-17 Thread Maximiliano Robaina
Hi Shai, Thank for the tip El martes, 17 de abril de 2018, 3:01:30 (UTC-3), Shai Berger escribió: > > Hi Maximiliano, > > On Sat, 14 Apr 2018 19:25:48 -0700 (PDT) > Maximiliano Robaina <maxir...@gmail.com > wrote: > > > Hi, > > > > Testing

Re: django-firebird test expressions

2018-04-16 Thread Maximiliano Robaina
itation on this type of statement. Running that query raise a "Data type unknown" error. https://stackoverflow.com/questions/37348807/data-type-unknown-in-case-expression-with-only-parameters-as-values I will need to found other strategy to resolve this. Regards. > > On Sunday, 15 Apri

django-firebird test expressions

2018-04-14 Thread Maximiliano Robaina
Hi, Testing expressions test app, the query generated into BasicExpressionsTests.test_annotate_values_filter method: companies = Company.objects.annotate( foo=RawSQL('%s', ['value']), ).filter(foo='value').order_by('name') Generate: 'SELECT "EXPRESSIONS_COMPANY"."ID",

Firebird - Schema migrations: add or alter field

2018-04-09 Thread Maximiliano Robaina
Hi folks, I'm here again trying to up to date the django-firebird backend. The last stable version was for django 1.8 LTS, that came to end of life, so I want to update to 1.11 LTS first and then to 2.0. Having said that, one of unresolved things is about adding a non-nullable field to a

Re: can_introspect_default feature

2017-04-25 Thread Maximiliano Robaina
Hi Shai, El martes, 25 de abril de 2017, 18:28:57 (UTC-3), Shai Berger escribió: > > Hi Maxi, > > On Tuesday 25 April 2017 20:21:47 Maximiliano Robaina wrote: > > Hi, > > > > Sorry but a need to return to this > > > > El jueves, 20 de octubre de

Re: can_introspect_default feature

2017-04-25 Thread Maximiliano Robaina
ful if later we need to remove it. > > > On Thursday, October 20, 2016 at 8:29:29 AM UTC-4, Maximiliano Robaina > wrote: >> >> Hi Tim, >> >> Thanks for response. >> >> El martes, 18 de octubre de 2016, 12:07:34 (UTC-3), Tim Graham escribió: >>>

Re: Django 1.8 - django 1.7 differences to read DecimalField

2017-04-06 Thread Maximiliano Robaina
se git bisect to find the Django commit where the behavior > changed: > > https://docs.djangoproject.com/en/dev/internals/contributing/triaging-tickets/#bisecting-a-regression > > > > On Wednesday, April 5, 2017 at 5:57:03 PM UTC-4, Maximiliano Robaina wrote: >>

Django 1.8 - django 1.7 differences to read DecimalField

2017-04-05 Thread Maximiliano Robaina
Hi, I'm the maintener of django-firebird database backend. I've an strange behavior (a different result) when reading a value from a DecimalField between Django 1.7 and Django 1.8 and I'm trying to figured out where is my mistake. I've a django project which I update from 1.7 to 1.8. In this

Re: can_introspect_default feature

2016-10-20 Thread Maximiliano Robaina
hat correct?, So, why this must be None? [1] https://github.com/django/django/commit/75303b01a9cc900eebf1f27ba0bc6508334242fc#diff-888b45a0a8f38ee67e8d22403cf994dbR1371 Regards > > On Tuesday, October 18, 2016 at 9:51:46 AM UTC-4, Maximiliano Robaina > wrote: >> >> Hi, &g

can_introspect_default feature

2016-10-18 Thread Maximiliano Robaina
Hi, How supposed to can_introspect_default must work? I'm working on django firebird backend and I'm trying to figured out how this feature works, but the schema tests fails. This default is at database level or django level? If I define a field with a default value, and do a metadata

Re: django-firebird backend: migrations and NULL fields

2014-06-19 Thread Maximiliano Robaina
commit: > https://github.com/django/django/commit/1b07781292c2cef9367b521dc0f2b40f4d363083 > > Just set it to True and you should get the behaviour you need. > > Andrew > Hi Andrew, Are you going to backport this to version 1.7? > > > On Fri, May 16, 2014 at 10:

Re: 3rd-party database backends: Do you need a "can_introspect_null" feature flag?

2014-06-17 Thread Maximiliano Robaina
El martes, 17 de junio de 2014 07:26:03 UTC-3, Rahul escribió: > > DB2 backend can introspect the nullability correctly, but it can't > introspect BooleanField. > > It introspect Boolean field as SmallIntegerField but in the test case if > can_introspect_boolean_field=False then it checks

Re: Schema tests and test_foreign_key_index_long_names_regression

2014-06-07 Thread Maximiliano Robaina
key and uniques. El viernes, 6 de junio de 2014 20:45:55 UTC-3, Maximiliano Robaina escribió: > > Hi, > > I'm trying to figured out how the > test_foreign_key_index_long_names_regression method works. > For my (using firebird backend) this test fails with: >

Schema tests and test_foreign_key_index_long_names_regression

2014-06-06 Thread Maximiliano Robaina
Hi, I'm trying to figured out how the test_foreign_key_index_long_names_regression method works. For my (using firebird backend) this test fails with: AssertionError: u'author_foreign_key_with_rea7ef8' not found in {u'ID': {'unique': False, 'primary_key': True}} I see that It's using

Re: Schema tests and .extra queryset method

2014-05-22 Thread Maximiliano Robaina
El jueves, 22 de mayo de 2014 03:24:12 UTC-3, Shai Berger escribió: > > Hi Maximiliano, > > The issue of case in quoted and un-quoted names in SQL is indeed a sad > mess, > bad decisions made in the 1960s that we still need to live with today. > > On Wednesday 21 May 2

Re: Schema tests and .extra queryset method

2014-05-22 Thread Maximiliano Robaina
22683#ticket > > > On Thu, May 22, 2014 at 6:38 AM, Maximiliano Robaina > <maxir...@gmail.com > > wrote: > >> Hi, >> >> Running schema tests I caught an issue, more precisely, >> in test_add_field_default_transform. >> At the end, this te

Schema tests and .extra queryset method

2014-05-21 Thread Maximiliano Robaina
Hi, Running schema tests I caught an issue, more precisely, in test_add_field_default_transform. At the end, this test method is doing: self.assertEqual(Author.objects.extra(where=["thing = 1"]).count(), 2) The problem here is what in this where clause, the "thing" field must be quoted. In

Re: Schema tests: delete_tables

2014-05-20 Thread Maximiliano Robaina
5 PM, Russell Keith-Magee < > rus...@keith-magee.com > wrote: > >> >> On Tue, May 20, 2014 at 7:07 AM, Maximiliano Robaina >> <maxir...@gmail.com >> > wrote: >> >>> Hi, >>> >>> Running tests, (I'm using firebird) in schema app, I

Schema tests: delete_tables

2014-05-19 Thread Maximiliano Robaina
Hi, Running tests, (I'm using firebird) in schema app, I see that the tearDown method deletes all tables created by each test. The problem here is for tables with AutoInc field where sequences are created independently, when the table is dropped we need delete the sequence object too. The, to

Re: Database-dependant tests and third-party backends

2014-05-19 Thread Maximiliano Robaina
El miércoles, 7 de mayo de 2014 22:03:11 UTC-3, Russell Keith-Magee escribió: > > > On Thu, May 8, 2014 at 12:40 AM, Aymeric Augustin < > aymeric@polytechnique.org > wrote: > >> Hello, >> >> I'm trying to make the lives of maintainers of third-party database >> backends a bit easier. >> >

Re: Database-dependant tests and third-party backends

2014-05-19 Thread Maximiliano Robaina
El miércoles, 7 de mayo de 2014 14:18:25 UTC-3, Shai Berger escribió: > > Hi, > > On Wednesday 07 May 2014 19:40:08 Aymeric Augustin wrote: > > > > I'm trying to make the lives of maintainers of third-party database > > backends a bit easier. > > > > +1. > > > > > *1) Checking database

Re: django-firebird backend: migrations and NULL fields

2014-05-16 Thread Maximiliano Robaina
El viernes, 16 de mayo de 2014 09:49:15 UTC-3, Andrew Godwin escribió: > > Let's go with a feature for this then. > > Maxi, did you want to submit a patch, or do you want me to add it at some > point next week! > > Andrew > I'll appreciate if you can add it. BTW, are there other areas that