Temporary tables not working???

2005-06-22 Thread John English
! - John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing| ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton|-- see http://burks.bton.ac.uk -

Re: Temporary tables don't work?

2005-07-02 Thread John English
. - John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing| ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton|-- see http://burks.bton.ac.uk -

Re: Temporary tables don't work?

2005-07-02 Thread John English
. Thanks again for pointing this out. - John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing| ** NON-PROFIT CD FOR CS STUDENTS ** University

Re: Temporary tables don't work?

2005-07-02 Thread John English
. - John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing| ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton|-- see http://burks.bton.ac.uk -

Finding length of a result set

2006-01-30 Thread John English
, -- John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http://www.it.bton.ac.uk/staff/je School of Computing MIS | Those who don't know their history University of Brighton| are condemned to relive it (Santayana) --

Create function problem

2006-02-28 Thread John English
tried Float, which is no better. The big difference is that, using primitive types, I can't handle nulls... Anyone got any ideas whhat I'm doing wrong? -- John English | mailto:[EMAIL PROTECTED] Senior Lecturer

Re: Create function problem

2006-03-01 Thread John English
. http://issues.apache.org/jira/browse/DERBY-479 http://issues.apache.org/jira/browse/DERBY-1030 This works fine for me. Thanks! -- John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http

Difference between view and select statement

2006-03-17 Thread John English
answer is to say SELECT * FROM user_list WHERE link'', which seems a bit perverse to me... -- John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http://www.it.bton.ac.uk/staff/je School of Computing

Re: Difference between view and select statement

2006-03-17 Thread John English
what's going on here, though... -- John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http://www.it.bton.ac.uk/staff/je School of Computing MIS | Those who don't know their history University

Migrating CLOBs to new DB schema

2006-07-05 Thread John English
other ideas that I could try? -- John English | mailto:[EMAIL PROTECTED] Senior Lecturer | http://www.it.bton.ac.uk/staff/je School of Computing MIS | Those who don't know their history University

java.lang.OutOfMemoryError

2008-02-13 Thread John English
what I can do to prevent this, or at least to narrow down the reasons for the error? My last-ditch catch Throwable handler doesn't give me a stack frame dump so it's hard to tell what's really going on. TIA, -- John English

Problem upgrading to 10.5.3: column named xml

2010-01-29 Thread John English
download that supports column renaming but doesn't have XML as a reserved word? Or is there another solution that I've missed? TIA, -- John English | mailto:j...@brighton.ac.uk Senior Lecturer | http

Problem upgrading to 10.5.3: column named XML

2010-01-29 Thread John English
download that supports column renaming but doesn't have XML as a reserved word? Or is there another solution that I've missed? TIA, -- John English | mailto:j...@brighton.ac.uk Senior Lecturer | http

Re: Problem upgrading to 10.5.3: column named xml

2010-01-30 Thread John English
On 29/01/2010 18:11, Rick Hillegas wrote: John English wrote: I've tried surrounding the name XML in double quotes (xml) but that doesn't work. Hi John, Have you tried uppercasing as well as doublequoting the column name. E.g., XML rather than xml? That is *exactly* the solution. I always

Re: Locking problem

2010-10-06 Thread John English
to be caused by a multi-query transaction of this sort (since the locks all have the same XID)? If so, it would narrow down the things I need to look at... Many thanks for your advice! -- John English | mailto:j

Re: Locking problem

2010-10-15 Thread John English
) result set to commit the transaction? -- John English | mailto:j...@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je School of Computing MIS | Those who don't know their history University

Re: Locking problem

2010-10-17 Thread John English
! -- John English | mailto:j...@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je School of Computing MIS | Those who don't know their history University of Brighton| are condemned to relive it (Santayana) --

Trigger problem

2010-10-21 Thread John English
. Can anyone: (a) confirm my reasoning? (b) suggest a workaround? Many thanks, -- John English | mailto:j...@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je School of Computing MIS

Re: Trigger problem

2010-10-24 Thread John English
the tests for an assembly before deleting the assembly itself, which works fine (but makes my code look untidy!). Regards, -- John English | mailto:j...@brighton.ac.uk Senior Lecturer | http

XSCH4, Conglomerate could not be created?

2010-12-07 Thread John English
. -- John English | mailto:j...@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je School of Computing MIS | Those who don't know their history University of Brighton| are condemned to relive

Inserting control characters in SQL

2011-03-11 Thread John English
) but of course this doesn't do it. Obviously I could write a Java program that does this, but this means reinventing the IJ wheel. Is there any existing way to do this? TIA, John English | My old University of Brighton home page

Re: Inserting control characters in SQL

2011-03-11 Thread John English
On 11/03/2011 17:42, Peter Ondruška wrote: Have you tried \b ? Hmm, silly me. I tried RTFMing -- stupid thing to do! John English | My old University of Brighton home page is still here: | http

Re: Inserting control characters in SQL

2011-03-11 Thread John English
On 11/03/2011 17:46, John English wrote: On 11/03/2011 17:42, Peter Ondruška wrote: Have you tried \b ? Hmm, silly me. I tried RTFMing -- stupid thing to do! OK, now I've tried it. It doesn't work. LENGTH('\b') == 2, not 1. Any other suggestions

Re: Inserting control characters in SQL

2011-03-17 Thread John English
having to define a function in Java to convert an int to a char for lack of a better idea, but I'm amazed that there isn't a built-in function for this. John English | My old University of Brighton home page is still here

Derby network server

2011-05-02 Thread John English
C:foo\db. ij Is there something I'm missing here? TIA, John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je

Re: Derby network server

2011-05-03 Thread John English
, John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je

Re: Derby network server

2011-05-03 Thread John English
, John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je

Re: Derby network server

2011-05-06 Thread John English
open? I'm starting it once from the webapp, then trying to connect externally with IJ before I go any further. John English | My old University of Brighton home page is still here: | http

Re: Week number of the year CASE statement query

2011-08-10 Thread John English
, John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je

Re: Week number of the year CASE statement query

2011-08-12 Thread John English
. Cheers, John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je

Re: Week number of the year CASE statement query

2011-08-20 Thread John English
replace * with a CASE to turn the right-hand nulls into zeroes? John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je

Re: Week number of the year CASE statement query

2011-08-21 Thread John English
WeekNumber(aDate) in the SELECT statement. A bit simpler than the ugly CASE! Cheers, John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je

Re: Week number of the year CASE statement query

2011-08-21 Thread John English
java-code to derby? No, you have to compile it and have it on the classpath. John English | My old University of Brighton home page is still here: | http://www.it.brighton.ac.uk/staff/je

Selecting max/min

2011-09-05 Thread John English
inefficient (particularly for big tables), what with selecting stuff from the same table four times and then throwing most of it away. Can anyone suggest a more elegant solution? TIA, John English | My old University

Re: Selecting max/min

2011-09-07 Thread John English
this helps, Yes, many thanks for the advice! John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Views dropped automatically when altering tables?

2012-02-07 Thread John English
any informed opinions on this... John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Re: Views dropped automatically when altering tables?

2012-02-07 Thread John English
... :-) John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Re: Views dropped automatically when altering tables?

2012-02-08 Thread John English
! John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Re: How to drop two interrelated tables at the same time?

2012-02-10 Thread John English
. Or am I missing something? John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Re: How to drop two interrelated tables at the same time?

2012-02-11 Thread John English
having columns A, B, C where A is the PK and B is FK to T2, and T2 has B, A, D, have T with A,B,C,D)? Or again, am I missing something? John English | My old University of Brighton home page is still here: | http

Memory leak?

2012-03-08 Thread John English
56 Total: 7 entries2,285 60,600 7,436,208 TIA, John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff

Re: Memory leak?

2012-03-11 Thread John English
dumps! John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Unique constraint, or something like it

2012-03-11 Thread John English
really doesn't appeal to me). Can anyone think of another way to do this? TIA, John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Re: Unique constraint, or something like it

2012-03-12 Thread John English
it will work before and after the changeover. Oh well. Maintenance is always such fun. Thanks, John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Re: Unique constraint, or something like it

2012-03-12 Thread John English
constraints, consider two null values duplicates: CREATE UNIQUE INDEX FOO_3 ON foo(section,title) But that won't actually prevent me entering duplicate values with a null section value, will it? John English | My old University

Re: Unique constraint, or something like it

2012-03-13 Thread John English
for! John English | My old University of Brighton home page is still here: | http://www.cem.brighton.ac.uk/staff/je/

Conglomerate could not be created?

2012-06-01 Thread John English
,'final'),(32,55,'final'); -- 4 rows inserted Can anybody throw any light on what's going on here please? -- John English

Re: Conglomerate could not be created?

2012-06-01 Thread John English
will look into this further! -- John English If we were to define a religion to be a system of thought which contains unprovable statements, so it contains an element of faith, then Gödel has taught us that not only is mathematics a religion but it is the only religion able to prove itself

Re: Conglomerate could not be created?

2012-06-02 Thread John English
parameters, and again got the same thing. So I'm still thrashing around in search of a solution... -- John English If we were to define a religion to be a system of thought which contains unprovable statements, so it contains an element of faith, then Gödel has taught us that not only is mathematics

Re: Conglomerate could not be created?

2012-06-02 Thread John English
On 01/06/2012 15:19, John English wrote: I'm having trouble with the following error: Conglomerate could not be created. It happens when I do this: INSERT INTO resource_usage (resid,itemid,itemtype) (SELECT resid,?,? FROM resource_usage WHERE itemid=? AND itemtype

Re: Conglomerate could not be created?

2012-06-04 Thread John English
On 04/06/2012 16:35, Kristian Waagan wrote: On 04.06.12 14:52, Rick Hillegas wrote: On 6/2/12 3:18 AM, John English wrote: On 01/06/2012 15:19, John English wrote: I'm having trouble with the following error: Conglomerate could not be created. It happens when I do this: INSERT

Re: Conglomerate could not be created?

2012-06-05 Thread John English
On 04/06/2012 19:57, Katherine Marsden wrote: On 6/4/2012 9:29 AM, John English wrote: I'm on 10.8, and I only have about a dozen matching rows at the moment. No stack trace that goes further than my own code; all I have is stuff like this: Check the derby.log for the error and full stack

Re: Conglomerate could not be created?

2012-06-06 Thread John English
. Looking in the code where the error is reported in the source code, it looks like it shouldn't happen. Could you post a JIRA bug report for this error, please? It you are able to make a stand-alone repro that will increase your chances of having it fixed. OK, many thanks, will do. -- John English

Re: Conglomerate could not be created?

2012-06-19 Thread John English
for the Conglomerate could not be created error to anyone? TIA, -- John English

Re: Conglomerate could not be created?

2012-06-21 Thread John English
On 20/06/2012 15:25, Kristian Waagan wrote: Logged as DERBY-5823 [1]. The bug is data dependent in that it requires a certain number of rows to be inserted, so that may be what's causing your repro to fail triggering the bug. OK, many thanks. -- John English

Re: Guidance/Help/Book/References?

2012-06-23 Thread John English
this exception (probably caused by nested select statements): Hi Pavel, What transaction isolation level are you using for the connections involved? -- John English

Getting transitive closure?

2012-10-14 Thread John English
, all items with parent=2, and so on down the chain of descendants? Or in other words, the transitive closure of the set? TIA, -- John English

Re: Getting transitive closure?

2012-10-14 Thread John English
haven't been able to think of. -- John English

Re: Getting transitive closure?

2012-10-14 Thread John English
in the process or recursively trying to construct the transitive closure of all the possible approaches that this page links to... :-) -- John English

Re: Getting transitive closure?

2012-10-15 Thread John English
); } while (res.next()); } else { // // No unprocessed rows found, so return // return; } } } } } -- John English

Localisation problem

2012-10-17 Thread John English
acceptable, but I haven't been able to come up with the devious trick I need. Can anyone help? TIA, -- John English

Re: Localisation problem

2012-10-18 Thread John English
hundred. What I really need is a create temporary view, or better still a way to smuggle a value inside the Connection that I use for the query that could be picked up inside TimeFormat. Sigh. Thanks for trying anyway! -- John English

Re: Localisation problem

2012-10-18 Thread John English
is based on the formatted text (which is now correctly localised) and the sorting is still based on the underlying timestamp. I can't say I'm impressed with the elegance of my code, but what the hell, it works! -- John English

Re: Localisation problem

2012-10-25 Thread John English
. Thanks for your input, -- John English

40XD0: Container has been closed?

2012-11-03 Thread John English
) at org.apache.derby.impl.store.raw.data.BaseContainerHandle.getPage(Unknown Source) ... 10 more -- John English

Re: 40XD0: Container has been closed?

2012-11-03 Thread John English
On 03/11/2012 13:15, John English wrote: Suddenly for no discernable reason I'm getting this error (stacktrace below) while using getString() to read from a clob, the contents of which is only about 60K in length. Something interesting: I've fixed the problem (i.e. made it go away). I'm

Re: 40XD0: Container has been closed?

2012-11-04 Thread John English
connection for both queries. So I'm totally baffled. Happy to have found a workaround but very annoyed that I don't understand why it works. Thanks for your help, -- John English

SQL: JOIN syntax

2012-11-18 Thread John English
something like Column 'A.FOO' is not in any table in the FROM list I know I'm probably being stupid, but please help anyway! TIA, -- John English

Re: SQL: JOIN syntax

2012-11-19 Thread John English
=c.bar but I knew there must be a better way! -- John English

Pivoting tables?

2012-11-21 Thread John English
is fixed when the function is defined. Does anyone have any ideas what else I could try? Or is there anything in the pipeline for a future version that might be relevant? TIA, -- John English

Re: AW: Pivoting tables?

2012-11-21 Thread John English
case expression it could work. Here an example function. [...snip...] Found in http://www.simple-talk.com/sql/t-sql-programming/creating-cross-tab-queries-and-pivot-tables-in-sql/ Thanks, it looks promising; I'll have a long think about this! -- John English

Re: AW: Pivoting tables?

2012-11-28 Thread John English
and ORDER BY clauses. So for now, I'm still stuck. Your suggestions and advice gratefully appreciated! -- John English

Re: AW: Pivoting tables?

2012-11-29 Thread John English
classes which support the script. Hmm, looks interesting! Hope this helps, Me too, but I need to spend some time digesting your example... Many thanks for this, -- John English

Re: AW: AW: Pivoting tables?

2012-12-04 Thread John English
! -- John English

Re: AW: AW: Pivoting tables?

2012-12-05 Thread John English
On 04/12/2012 20:46, John English wrote: I'm going to try using a user-defined function to format the name and thus avoid the extra GROUP BY elements (which are my immediate suspect for the performance hit), but does anyone have any other suggestions for improving on this solution? Just

Ideas for optimisation needed

2012-12-20 Thread John English
for upwards of 30 seconds at a time? TIA, -- John English

Re: Ideas for optimisation needed

2012-12-21 Thread John English
applications I have open at the time, which suggests to me that there's a lot of swapping going on... -- John English

Re: Ideas for optimisation needed

2012-12-22 Thread John English
with different variations of formatting and views and see what I can find out. Thanks, -- John English

Re: Selecting empty columns?

2013-01-23 Thread John English
On 23/01/2013 14:02, John English wrote: I want to select all rows from a table where a varchar column is a zero-length string. Of course this works: SELECT * FROM my_table WHERE my_col=''; but I would have expected this to work too: SELECT * FROM my_table WHERE my_col NOT LIKE

Re: DriverManager.getConnection error with JDK 7

2013-02-23 Thread John English
) The exception is presumably reporting a syntax error, but since you didn't give details of the exception I can't be sure. -- John English

Re: DriverManager.getConnection error with JDK 7

2013-02-23 Thread John English
you try and connect? HTH, -- John English

Re: DriverManager.getConnection error with JDK 7

2013-02-23 Thread John English
On 23/02/2013 17:47, john miltone wrote: I caught SQLException and he said that : No suitable driver found for jdbc:derby:MoneyBack1;create=true;user=miltone;password=password So your classloader can't find the derby driver. Have you checked that derby.jar is on your classpath? -- John

Re: Link broken on derby's documentation

2013-03-10 Thread John English
to access the database directly rather than going through your app? -- John English

Peculiar sorting behaviour?

2013-04-02 Thread John English
be going on here? TIA, -- John English

Re: Peculiar sorting behaviour?

2013-04-02 Thread John English
the behaviour. John English

Re: Peculiar sorting behaviour?

2013-04-02 Thread John English
database? (I am a bear of very little brain when it gets to understanding execution plans!) Many thanks, -- John English

Re: Peculiar sorting behaviour?

2013-04-03 Thread John English
thanks! -- John English

Re: Peculiar sorting behaviour?

2013-04-03 Thread John English
0 AND 100) ); -- John English

Re: Peculiar sorting behaviour?

2013-04-03 Thread John English
it to the bug report if I succeed. -- John English

Re: Peculiar sorting behaviour?

2013-04-04 Thread John English
table has a composite primary key. I've now found two queries where this particular table sorts wrongly, but no other cases. Anybody got any thoughts whether this might be a factor? -- John English

Re: Problem inserting

2013-04-16 Thread John English
, then you'll need to post the less interesting parts of your code. HTH, -- John English

Re: Raising a user defined exception in a trigger

2013-07-31 Thread John English
ON waste_container CALL go_bang(); -- John English

Re: More trigger problems

2013-08-25 Thread John English
current_location, which current_location does the RHS of the condition refer to? -- John English

Re: More trigger problems

2013-08-26 Thread John English
a procedure to insert or not seems to be the only way to do what you want. HTH, -- John English

Re: Retrieving newest record from derby table

2013-10-21 Thread John English
and also a tutorial on JDBC. -- John English

Re: deleting a record - still a problem

2013-10-23 Thread John English
= conn.prepareStatement(DELETE FROM tablename WHERE CURRENT OF MYCURSOR); statements.add(psDelete); Why not just use rs.deleteRow() instead of using a cursor? -- John English

Re: How to drop a bad table?

2013-11-20 Thread John English
didn't notice? -- John English

Re: Can I run derby for a long time?

2014-01-11 Thread John English
has up to about 100 concurrent clients, and I stop it for about half an hour every 3-4 months to install fixes and updates. I've been running it like this for about 3 years now. -- John English

Re: How best to handle null in cast of column subquery

2014-02-13 Thread John English
column is null in the records not being returned.* *CAST(AGE AS varchar(3)) ||'|'||* Perhaps use something like this: CASE WHEN Age IS NULL THEN '' ELSE Age END || '|' -- John English

Re: adding a record to a table

2014-02-16 Thread John English
in derby.properties for even more information. HTH, -- John English

  1   2   >