Ticket #15 (closed defect: fixed)

Opened 2 years ago

Last modified 1 month ago

BINARY object does not allow null values

Reported by: carlo@… Owned by: dhughes
Type: defect Priority: normal
Milestone: Component: Documentation
Version: Severity: normal
Keywords: Cc:

Description

I am using MySQL 4,

the validate method fail using a record object with a binary field (BLOB)

with value null.

I check the code in the validator object the generated funtion look like this:

<cfif NOT IsBinary(arguments.RFTRecord.getencryptedTenderPassphrase())>

<cfset arguments.ErrorCollection.addError("RFT.encryptedTenderPassphrase.invalidType") />

</cfif>

Cheers,

Piva Giancarlo.

<!--- validate ClickedStatusID is numeric --->
<cfif Len(Trim(arguments.RFTRecord.getClickedStatusID())) AND NOT IsNumeric(arguments.RFTRecord.getClickedStatusID())>

<cfset arguments.ErrorCollection.addError("RFT.ClickedStatusID.invalidType") />

</cfif>

Change History

Changed 2 years ago by dhughes

  • status changed from new to closed
  • resolution set to fixed

(In [295]) Fixes #15. Fixes 10.

Generated DAOs now always get an exists method when they have a primary key in the DB.
Generated Records also get an exists method when they have a primary key in the DB.
Validators now allow for null binary values.

Changed 1 month ago by anonymous

  • milestone deleted

Milestone Beta Candidate 2 (BC2) deleted

Note: See TracTickets for help on using tickets.