=09
Thanks. =20
Now, I've got a slightly different problem.
When I execute a SELECT statement against the table that contains the
BLOB,
I get a ClassCastException
I observed this exception w/ J2SE 1.4.2_06 and w/ J2SE 1.5.0
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException:
java.lang.S
tring
at
net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.DataTypeB
lob.isEditableInCell(DataTypeBlob.java:239)
at
net.sourceforge.squirrel_sql.fw.datasetviewer.cellcomponent.CellCompo
nentFactory$CellRenderer.getTableCellRendererComponent(CellComponentFact
ory.java
:269)
at javax.swing.JTable.prepareRenderer(JTable.java:3919)
at
javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1645)
at
javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1547
)
at
javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1470)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
at javax.swing.JComponent.paintComponent(JComponent.java:740)
at javax.swing.JComponent.paint(JComponent.java:1003)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JComponent.paint(JComponent.java:1012)
at javax.swing.JComponent.paintChildren(JComponent.java:840)
at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1021)
at javax.swing.JComponent.paint(JComponent.java:1012)
at
javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4930)
at
javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4883)
at
javax.swing.JComponent._paintImmediately(JComponent.java:4826)
at javax.swing.JComponent.paintImmediately(JComponent.java:4633)
at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:451)
at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System
EventQueueUtilities.java:114)
at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
=20
> -----Original Message-----
> From: gwg [mailto:gw...@co...]=20
> Sent: Wednesday, October 13, 2004 10:40 AM
> To: Sullivan, Sean C - MWT
> Subject: Re: [Squirrel-sql-users] Squirrel SQL 1.2 beta 6,=20
> Blob columns
>=20
> Hi Sean,
> Look under "Global Preferences", "Data Type". There are various=20
> controls for limiting the reading of BLOB data.
>=20
> Glenn
>=20
> Sullivan, Sean C - MWT wrote:
> > Hi,
> >=20
> > I am using Squirrel SQL 1.2 beta 6 with Sun JDK 1.4.2
> >=20
> > I have a table that contains 79 rows.
> >=20
> > One of the columns in the table is a Blob.
> >=20
> > When I select the "Content" tab in the Squirrel GUI, it appears as
> > though=20
> > Squirrel is trying to read all of the Blob data for each of=20
> the 79 rows.
> >=20
> > Is this correct?
> >=20
> > How can I turn this off?
> >=20
> > I looked at the Session Properties but there does not=20
> appear to be any
> > way=20
> > to change the behavior.
> >=20
> > Thanks.
> >=20
> > -Sean
> >=20
|