[GENERAL] JDBC and Accents

2001-04-26 Thread Loïc Courtois

Hello,

I have some problems to display the accents in my db, using the JDBC and
postgres 7.1.

Apparently, all accents are replaced by a '?'.

Thanks .

Loic Courtois
Netpartage


---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly



[GENERAL] JDBC problem & 7.1

2001-04-26 Thread Loïc Courtois

Hello,

I have the following java source code:

This one work with pg 7.0.3 , but not with 7.1, with the following error
message:

java.lang.NullPointerException
at org.postgresql.jdbc2.ResultSet.next(ResultSet.java:116)
at ouah.stats.Stats.go(Stats.java:242)
at daily.main(daily.java:54)

///BEGIN
///:
Statement statement;
ResultSet results, results2;

try {
statement = conn.createStatement();

if(statement.execute("SELECT ...")) {
results = statement.getResultSet();
while(results.next()) {
System.out.println(results.getInt("nb"));

if(statement.execute("SELECT ... WHERE no = " +
results.getString("no") ... ")) {
results2 = statement.getResultSet();
while(results2.next()) {
System.out.println("\t" +
results2.getInt("nb"));
}
results2.close();
}
}
results.close();
statement.close();
}
} catch (java.sql.SQLException e) { e.printStackTrace();}
///END//
/:


This one work with pg 7.1
///BEGIN
///:
Statement statement, s2;
ResultSet results, results2;

try {
statement = conn.createStatement();
s2 = conn.createStatement();

if(statement.execute("SELECT ...")) {
results = statement.getResultSet();
while(results.next()) {
System.out.println(results.getInt("nb"));

   if(s2.execute("SELECT ... WHERE no = " +
results.getString("no") ... ")) {
results2 = s2.getResultSet();
while(results2.next()) {
System.out.println("\t" +
results2.getInt("nb"));
}
results2.close();
}
}
results.close();
statement.close();
s2.close();
}
} catch (java.sql.SQLException e) { e.printStackTrace();}
///END//
/:


Please, could I have advice?

Thanks!!

Loic Courtois
Netpartage


---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly



[GENERAL]

2001-03-25 Thread Loïc Courtois

Hello,

We used postgres since 5 months, and we have some times crash, with the
following entry in the postgres.log:
 /usr/lib/postgresql/bin/postmaster: ServerLoop: select failed: No child
processes

Please help me...

Here some informations on the installation:
Debian 2.2.17
Postgres 7.0.3

Bests regards

Loic Courtois


---(end of broadcast)---
TIP 4: Don't 'kill -9' the postmaster