To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=74185


User jbu changed the following:

                What    |Old value                 |New value
================================================================================
          Ever confirmed|                          |1
--------------------------------------------------------------------------------
                  Status|UNCONFIRMED               |NEW
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Thu Feb  8 21:42:21 +0000 
2007 -------
Hi,

postgresql has basically three data char datatypes

varchar(length)
char(length)
text

. The last datatype is a string of unlimited length which does not take a
precision (and is correctly reflected to -1 in precision).

The database wizard within the office has stored sql type and precision for
every datafield within the wizard. On runtime, it matches the varchar type to a
database dependent type name with the method

wizards/com/sun/star/wizards/db/ColumnPropertySet.java:setType()

, but it does not take into account the precision. In the concrete case, a
column of SDBC type varchar and precision 50 is matched to the "text" datatype
which is wrong, it must be matched to varchar(50), thats a bug within OOo's 
wizard.

The problem cannot be fixed within postgresql driver (i could check for the text
type and ignore a given precision, but this would lead to a text column instead
of the desired varchar(n), which is still wrong).

I may create a patch for it in the next days, but I then need to find someone to
get it into OOos sourcetree.

Bye,

Joerg


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to