On 2/2/07, mamcxyz <[EMAIL PROTECTED]> wrote: > INSERT INTO Vendedor (Codigo) VALUES ('006') > > And blindly believe in the database. > > Then today I discover Sqlite "transform" it to '6'. That is I call a > shock! Specially when Sqlite declare that all the data is internally > stored as text.
Yes, it stores everything as text, but it still pays attention to the fact that you declare a database field as an integer. If Codigo is an integer field, 006 = 6, and it won't ever keep the preceding zeros. If the 0's actually mean something (and 006 != 6), make Codigo a text field, not an integer field. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---