Ticket #371 (closed defect: invalid)

Opened 9 months ago

Last modified 4 weeks ago

unique check not always run

Reported by: disaster Owned by: somebody
Priority: important Milestone: 1.1.2
Component: Other Version: 1.1.1 Stable
Keywords: Unique, primary key Cc:

Description

If the table's primary key is a varchar, it's not checked for uniqueness, as usually the primary key is a "serial" field.
Shall we change

if ($objIndex->Unique && !$objIndex->PrimaryKey) {

to something "smarter"?

if ($objIndex->Unique && !$objIndex->Serial) {

is this correct?

Change History

Changed 7 months ago by alex94040

  • status changed from new to infoneeded_new

Can you give a tiny bit more context? Which file is the proposed change in? What's the positive impact if we do this?

Changed 7 months ago by alex94040

  • milestone changed from 1.1.1 to 1.1.2

Changed 4 weeks ago by alex94040

  • version set to 1.1.1 Stable
  • milestone changed from 1.1.2 to 1.1.3

Changed 4 weeks ago by alex94040

  • status changed from infoneeded_new to closed
  • resolution set to invalid
  • milestone changed from 1.1.3 to 1.1.2

No info was provided - closing as Invalid.

Note: See TracTickets for help on using tickets.