Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!cornellcs!newsstand.cit.cornell.edu!news.kei.com!newsfeed.internetmci.com!in2.uu.net!news2.new-york.net!not-for-mail
From: Jeff Britton <70714.163@compuserve.com>
Subject: VW2.0 + Oracle7 & ParcTip111? 
Content-Type: text/plain; charset=us-ascii
X-Nntp-Posting-User: (Unauthenticated)
Content-Transfer-Encoding: 7bit
Organization: JNB Associates, Inc.
Message-ID: <310433CE.9DC@compuserve.com>
X-Mailer: Mozilla 2.0b6a (WinNT; I)
Mime-Version: 1.0
X-Nntp-Posting-Host: cnj09.cybernex.net
Date: Tue, 23 Jan 1996 01:03:10 GMT
Lines: 49

Hello, hello!

Anyone out there who's used dbconnect with Oracle and has seen 
the nifty ParcTip 111 in the library?  
<http://www.parcplace.com/support/vworks/parctips/pt111> It 
demos the use of ExternalDatabaseConnection.

The tip files in a Customer class with methods to create an 
Oracle table and insert data into the table.  All this works 
fine.  But there's more.

Retrieving the data in the VW/Database/Ad Hoc SQL dialog proves 
that the data was successfully inserted, BUT retrieving the data 
using the loadCustomerData: method in the tip results in *nil*!  
Inspecting:


	| aCustomer aList |
	aCustomer := Customer new.
	aCustomer connect.
	aList := List new.
	aCustomer loadCustomerData: aList.
	aCustomer disconnect

produces:

	self		a Customer
	name		nil	
	idNumber		nil

even though the sample insert should produce something like:

	self		a Customer
	name		Second
	idNumber		2


Why isn't any data retrieved as the tip indicates?  I've filed 
in all the patches for VW2.0 and all those for Oracle that seem 
relevant, yet still no output.

Am I missing something here?  Is there some additional 
processing that the tip omits or fails to mention?  Can anyone 
shed some light on this?

Thanks for any insights in advance.


Jeff Britton
