ajperalt / dbxtalk

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

Glorp queries with Smalltalk messages #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If we do this in GLorp:

aQuery whereClause:[ :row | row field = 1 ] anda.

it works....however, we would like to be able to do:

aQuery whereClause: [ :row | row field isNumeric ] 

it breaks... 

Original issue reported on code.google.com by marianopeck on 7 May 2011 at 3:30

GoogleCodeExporter commented 9 years ago
What would be the meaning of that in SQL? If the field is not of a numeric 
type, then that seems to resolve to false. If it is a numeric type, it seems to 
resolve to NOT NULL. 

Original comment by alan.kni...@gmail.com on 7 Jun 2011 at 1:27

GoogleCodeExporter commented 9 years ago
well, i'll explain better the issue...
the idea is implement the support for non-mapping message in the 
GlorpExpression.. and make a filter in the smalltalk side. In this way the 
smalltalk programmer don't must be care about the mapping or not mapping 
message.. only use a block like a select: message in a collection.

Best

Original comment by diogenes...@gmail.com on 7 Jun 2011 at 2:21