On Wed, Jun 08, 2016 at 09:50:41AM +0200, Alistair Grant wrote:
> PharoDatabaseAccessor DefaultDriver: GlorpSQLite3Driver.
> session := GlorpBookDescriptorSystem sessionForLogin: login.
Listing 1.12 on page 9 of the PDF says your code is missing a line:
session login.
The example I posted in the announcement thread also sends #login, but to the
accessor.
| login accessor |
login := Login new
...
yourself.
PharoDatabaseAccessor DefaultDriver: GlorpSQLite3Driver.
accessor := PharoDatabaseAccessor forLogin: login.
"==>" accessor login. "<=="
(accessor executeSQLString: 'select * from sqlite_master') explore.
accessor logout.
If you follow the implementation of GlorpSession>>login you will see that it
eventually sends #login to the accessor.
Pierce