Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Alert when user attempts to create relation between 2 fields of same type but different length. | ||
---|---|---|---|
Product: | Base | Reporter: | sak102010 <sak.102010> |
Component: | code | Assignee: | AOO issues mailing list <issues> |
Status: | UNCONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | OOO320m7 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux, all | ||
Issue Type: | ENHANCEMENT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
sak102010
2009-12-11 22:16:38 UTC
Here are a few steps to reproduce the situation I described originally to hopefully clarify things. Create table called Status: Status, Text, length 50, PK Create a table called Task: TaskID, INT, Auto, PK Status, Text, length 10, FK Populate the Status table with the following: Scheduled Cancelled Completed In Progress Create relationship between Status.Status and Tasks.Status (This is where an alert should pop up warning the user that they are creating a bad relationship. Base currently allows the user to create the relationship.) Create a Form for the Task table and add a single Combo Box element to pull data from Status.Status and put it in Task.Status. Leave design mode in the Form and you are now able to add records into the database with Cancelled, Completed, or Schedule statuses, but once you try to create a record with In Progress, the following error is generated: SQL Status: 22001 Error code: -124 Value too long in statement [INSERT INTO "Task" ( "Status") VALUES ( ?)] |