gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] debugging help


From: syan tan
Subject: [Gnumed-devel] debugging help
Date: Thu, 20 Nov 2003 11:23:02 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313

from gmSelectPerson.newPatient() is called.
which presumably calls gmPatient.create_identity .
I think 'N/A' is the problem , because identity gender is a char(2) field .
Have I got an old identity table?


[PANIC] (/home/sjtan/projects/gnumed/gnumed/client/python-common/gmPG.py::run_commit:612): RW query >>>insert into identity(gender, dob) values('N/A', CURRENT_TIMESTAMP)<<< with args >>>[]<<< failed [PANIC] (/home/sjtan/projects/gnumed/gnumed/client/python-common/gmPG.py::run_commit:612): exception type : libpq.OperationalError [PANIC] (/home/sjtan/projects/gnumed/gnumed/client/python-common/gmPG.py::run_commit:612): exception value: ERROR: value too long for type character varying(2)

[PANIC] (/home/sjtan/projects/gnumed/gnumed/client/python-common/gmPG.py::run_commit:612): Traceback (most recent call last):<#10-0x0A-lf> [PANIC] (/home/sjtan/projects/gnumed/gnumed/client/python-common/gmPG.py::run_commit:612): File "/home/sjtan/projects/gnumed/gnumed/client/python-common/gmPG.py", line 608, in run_commit<#10-0x0A-lf> cur.execute (query, *args)<#10-0x0A-lf> [PANIC] (/home/sjtan/projects/gnumed/gnumed/client/python-common/gmPG.py::run_commit:612): File "/usr/lib/python2.2/site-packages/pyPgSQL/PgSQL.py", line 2956, in execute<#10-0x0A-lf> raise OperationalError, msg<#10-0x0A-lf> [PANIC] (/home/sjtan/projects/gnumed/gnumed/client/python-common/gmPG.py::run_commit:612): OperationalError: ERROR: value too long for type character varying(2)<#10-0x0A-lf><#10-0x0A-lf>
id =  None






reply via email to

[Prev in Thread] Current Thread [Next in Thread]