yasser777 / nettiers

Automatically exported from code.google.com/p/nettiers
0 stars 0 forks source link

PATCH: GetColumnNameValue - Fixes ORA-00907: missing right parenthesis when clicking Select on Add/Edit page #392

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. clicking Select on List page

What is the expected output? What do you see instead?
It should go to the Add/Edit page
It displays error ORA-00907: missing right parenthesis

What version of .netTiers and CodeSmith are you using?
.netTiers 887
CodeSmith 5.3.4

Please provide any additional information below.
The attached patch includes a new method GetColumnNameValue in 
\netTiers\Entities\EntityHelper.cst and the call to this is placed in 
...\Data\BaseDataSource.cs

The old code improperly called GetEnumTextValue which returns the friendly name 
containing a space causing an invalid sql query to be executed.

Original issue reported on code.google.com by contactb...@gmail.com on 19 Jul 2011 at 1:18

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 25 Jul 2011 at 4:01