Author:halw

Date:2008-12-07T17:38:05.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@127 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2008-12-07 17:38:05 +00:00
parent ee8b3324fc
commit 2b2bb8f513
4 changed files with 88 additions and 67 deletions

View File

@@ -19,6 +19,7 @@
* Fixed missing detection of VREG and VRFT errors for labels of a named tuples which is used as an actual generic parameter of a type (fixes eweasel test#tuple012 and test#tuple013), thus some of your code might be broken since the compiler failed to check this before. * Fixed missing detection of VREG and VRFT errors for labels of a named tuples which is used as an actual generic parameter of a type (fixes eweasel test#tuple012 and test#tuple013), thus some of your code might be broken since the compiler failed to check this before.
* Fixed eweasel test#valid222 where compiler properly detects VDRS-4 errors when you redefine a repeatedly inherited routine in at least one but not all branches, but fail to provide a local definition. * Fixed eweasel test#valid222 where compiler properly detects VDRS-4 errors when you redefine a repeatedly inherited routine in at least one but not all branches, but fail to provide a local definition.
* Now a formal generic parameter only conforms to a formal generic parameter, that is to say assignment to a formal generic parameter where the source is of type NONE (i.e <eiffel>Void</eiffel>) will now be rejected by the compiler. * Now a formal generic parameter only conforms to a formal generic parameter, that is to say assignment to a formal generic parameter where the source is of type NONE (i.e <eiffel>Void</eiffel>) will now be rejected by the compiler.
* Dropped support for older Microsoft C/C++ compilers on Windows platforms. We only support VS 2005 or greater.
==Bug fixes== ==Bug fixes==

View File

@@ -10,7 +10,9 @@ Use the [[ref:/libraries/store/reference/db_change_flatshort|DB_CHANGE]] class
<code> <code>
modification: DB_CHANGE modification: DB_CHANGE
-- Modification tool. -- Modification tool.
... ...
create modification.make create modification.make
modification.modify ("Update CONTACTS set Firstname = ' John'") modification.modify ("Update CONTACTS set Firstname = ' John'")
</code> </code>
@@ -19,7 +21,9 @@ Use the [[ref:/libraries/store/reference/db_change_flatshort|DB_CHANGE]] class
<code> <code>
session_control: DB_CONTROL session_control: DB_CONTROL
-- Session control. -- Session control.
... ...
session_control.commit session_control.commit
</code> </code>

View File

@@ -9,7 +9,10 @@ Use the [[ref:/libraries/store/reference/db_selection_flatshort|DB_SELECTION]]
* You can carry out 'select' queries in an intuitive way using directly the SQL language: * You can carry out 'select' queries in an intuitive way using directly the SQL language:
<code> <code>
selection: DB_SELECTION selection: DB_SELECTION
-- Selection tool
... ...
create selection.make create selection.make
selection.set_query ("select * from CONTACTS where firstname = 'John'") selection.set_query ("select * from CONTACTS where firstname = 'John'")
selection.execute selection.execute

View File

@@ -17,7 +17,9 @@ To use DB_RESULT, process in 2 steps:
<code> <code>
selection: DB_SELECTION selection: DB_SELECTION
my_result: DB_RESULT my_result: DB_RESULT
... ...
selection.query ("...") selection.query ("...")
if selection.is_ok then if selection.is_ok then
selection.load_result selection.load_result
@@ -29,6 +31,9 @@ To use DB_RESULT, process in 2 steps:
<code> <code>
selection: DB_SELECTION selection: DB_SELECTION
container: ARRAYED_LIST [DB_RESULT] container: ARRAYED_LIST [DB_RESULT]
...
create container.make (Max_results) create container.make (Max_results)
... ...
selection.set_container (container) selection.set_container (container)
@@ -54,12 +59,16 @@ To use DB_RESULT, process in 2 steps:
redefine redefine
execute, found execute, found
end end
... ...
execute execute
do do
i := i + 1 i := i + 1
end end
... ...
found: BOOLEAN found: BOOLEAN
do do
Result := i >= Max_result Result := i >= Max_result
@@ -69,7 +78,9 @@ To use DB_RESULT, process in 2 steps:
<code> <code>
selection: DB_SELECTION selection: DB_SELECTION
action: MY_ACTION action: MY_ACTION
... ...
selection.set_action (action) selection.set_action (action)
selection.query ("...") selection.query ("...")
if selection.is_ok then if selection.is_ok then
@@ -85,7 +96,9 @@ A DB_RESULT object merely carries data retrieved from the database. You have to
<code> <code>
selection: DB_SELECTION selection: DB_SELECTION
tuple: DB_TUPLE tuple: DB_TUPLE
... ...
create tuple create tuple
tuple.copy (selection.cursor) tuple.copy (selection.cursor)
if tuple.count >= 2 and then tuple.column_name (2).is_equal ("Firstname") then if tuple.count >= 2 and then tuple.column_name (2).is_equal ("Firstname") then