On Tue, May 20, 2008 at 7:03 AM, Gacha <[EMAIL PROTECTED]> wrote:

>
> I changed the line, but I got the same error :(
>

Also see this ticket:

http://code.djangoproject.com/ticket/6523

which has an alternative patch and more discussion of what is going on.  I
don't think it's been decided what to do about fixing this, though.

Karen



>
> Traceback (most recent call last):
>
>  File "/usr/lib/python2.5/site-packages/django/core/handlers/
> base.py", line 82, in get_response
>    response = callback(request, *callback_args, **callback_kwargs)
>
>  File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/
> decorators.py", line 62, in _checklogin
>    return view_func(request, *args, **kwargs)
>
>  File "/usr/lib/python2.5/site-packages/django/views/decorators/
> cache.py", line 44, in _wrapped_view_func
>    response = view_func(request, *args, **kwargs)
>
>  File "/usr/lib/python2.5/site-packages/django/contrib/admin/views/
> main.py", line 334, in change_stage
>    errors = manipulator.get_validation_errors(new_data)
>
>  File "/usr/lib/python2.5/site-packages/django/oldforms/__init__.py",
> line 62, in get_validation_errors
>    errors.update(field.get_validation_errors(new_data))
>
>  File "/usr/lib/python2.5/site-packages/django/oldforms/__init__.py",
> line 379, in get_validation_errors
>    self.run_validator(new_data, validator)
>
>  File "/usr/lib/python2.5/site-packages/django/oldforms/__init__.py",
> line 369, in run_validator
>    validator(new_data.get(self.field_name, ''), new_data)
>
>  File "/usr/lib/python2.5/site-packages/django/utils/functional.py",
> line 55, in _curried
>    return _curried_func(*(args+moreargs), **dict(kwargs,
> **morekwargs))
>
>  File "/usr/lib/python2.5/site-packages/django/db/models/
> manipulators.py", line 302, in manipulator_validator_unique_together
>    old_obj = self.manager.get(**kwargs)
>
>  File "/usr/lib/python2.5/site-packages/django/db/models/manager.py",
> line 82, in get
>    return self.get_query_set().get(*args, **kwargs)
>
>  File "/usr/lib/python2.5/site-packages/django/db/models/query.py",
> line 192, in get
>    num = len(clone)
>
>  File "/usr/lib/python2.5/site-packages/django/db/models/query.py",
> line 53, in __len__
>    self._result_cache = list(self.iterator())
>
>  File "/usr/lib/python2.5/site-packages/django/db/models/query.py",
> line 162, in iterator
>    for row in self.query.results_iter():
>
>  File "/usr/lib/python2.5/site-packages/django/db/models/sql/
> query.py", line 200, in results_iter
>    for rows in self.execute_sql(MULTI):
>
>  File "/usr/lib/python2.5/site-packages/django/db/models/sql/
> query.py", line 1466, in execute_sql
>    cursor.execute(sql, params)
>
> ProgrammingError: operator does not exist: smallint ~~* unknown
> LINE 1: ...js_id" = '6537'  AND "assort_apstlaiks"."a_diena" ILIKE
> '4'
>                                                              ^
> HINT:  No operator matches the given name and argument type(s). You
> might need to add explicit type casts.
>
>
>
> On May 20, 1:23 pm, "Scott Moonen" <[EMAIL PROTECTED]> wrote:
> > Gacha, see my bug report and a possible fix (it is currently working for
> me)
> > at:
> >
> > http://code.djangoproject.com/ticket/7197
> >
> >   -- Scott
> >
> >
> >
> > On Tue, May 20, 2008 at 4:14 AM, Gacha <[EMAIL PROTECTED]> wrote:
> >
> > > I upgraded Postgresql to 8.3 version and got an error in admin:
> >
> > >    ProgrammingError: operator does not exist: smallint ~~* unknown
> > >    LINE 1: ...js_id" = '6538'  AND "assort_apstlaiks"."a_diena" ILIKE
> > > '2'
> > >                                                                 ^
> > >    HINT:  No operator matches the given name and argument type(s).
> > > You might need to add explicit type casts.
> >
> > > The field "a_diena" is an integer and from 8.3 version as changelog
> > > says "Non-character data types are no longer automatically cast to
> > > TEXT", so this sounds like bug.
> >
> > --http://scott.andstuff.org/|http://truthadorned.org/<http://scott.andstuff.org/%7Chttp://truthadorned.org/>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to