pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: Doubt
8+ messages / 8 participants
[nested] [flat]
* Re: Doubt
@ 2002-05-30 10:20 Joe Shevland <jshevland@j-elite.com>
0 siblings, 1 reply; 8+ messages in thread
From: Joe Shevland @ 2002-05-30 10:20 UTC (permalink / raw)
To: priya k <k_priya17@yahoo.com>; +Cc: pgsql-jdbc
Hi Priya,
Unsure, as I don't tend to use the metadata methods a lot, but it may be the case that the latest CVS sources of the driver have solved the problem. I've CC'ed the main list as I'm fairly sure this has come up before and is working.
Cheers,
Joe
-----Original Message-----
From: priya k [mailto:k_priya17@yahoo.com]
Sent: Thursday, 30 May 2002 19:57
To: Joe Shevland
Subject: RE: Doubt
Thank you for the immediate reply.
I downloaded & tried retrieving primary key, foreign key(namely getExported, getImportedKey). Both of them are working, but getImportedKey is able to retrieve only one foreign key , eventhough the table has 2. Sir, what to do ?
Waiting for ur reply,
With regards,
Priya.
Joe Shevland <jshevland@j-elite.com> wrote:
Hi there,
These metadata methods will work with the latest versions of the PostgreSQL JDBC driver.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Doubt
@ 2002-05-30 12:53 Dave Cramer <Dave@micro-automation.net>
parent: Joe Shevland <jshevland@j-elite.com>
0 siblings, 0 replies; 8+ messages in thread
From: Dave Cramer @ 2002-05-30 12:53 UTC (permalink / raw)
To: Joe Shevland <jshevland@j-elite.com>; +Cc: priya k <k_priya17@yahoo.com>; pgsql-jdbc
Actually, this is the second time I have heard this, so I am leaning
towards this being a bug.
Dave
On Thu, 2002-05-30 at 06:20, Joe Shevland wrote:
> Hi Priya,
>
> Unsure, as I don't tend to use the metadata methods a lot, but it may be the case that the latest CVS sources of the driver have solved the problem. I've CC'ed the main list as I'm fairly sure this has come up before and is working.
>
> Cheers,
> Joe
>
> -----Original Message-----
> From: priya k [mailto:k_priya17@yahoo.com]
> Sent: Thursday, 30 May 2002 19:57
> To: Joe Shevland
> Subject: RE: Doubt
>
> Thank you for the immediate reply.
> I downloaded & tried retrieving primary key, foreign key(namely getExported, getImportedKey). Both of them are working, but getImportedKey is able to retrieve only one foreign key , eventhough the table has 2. Sir, what to do ?
> Waiting for ur reply,
> With regards,
> Priya.
>
>
> Joe Shevland <jshevland@j-elite.com> wrote:
> Hi there,
>
> These metadata methods will work with the latest versions of the PostgreSQL JDBC driver.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* doubt
@ 2004-06-11 09:44 sathish <sathish@ceedees.com>
0 siblings, 2 replies; 8+ messages in thread
From: sathish @ 2004-06-11 09:44 UTC (permalink / raw)
To: pgsql-jdbc
dear groups,
i have a doubt in sql,
i have a table staff_skills in which i have set a table level
constraint to create a primary key of two fields .
so 'name' and 'skill' combinedly forms a primary key.
now the issue is in another table i have only 'name' field and i want
to create a foreign key constraint which refers the staff_skills table's
'name' field only.
staff_skills (table) - name,skill,ability (columns) --- primary
key(name,skill)
staff_xxxx (table) - name,x,y,z (columns) --- foreign
key(name) references staff_skills(name).
how to do the above?
your immediate reply will be helpful
yours sincerely
SathishKumar.S
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [ADMIN] doubt
@ 2004-06-14 07:25 Jouneau Luc <Luc.Jouneau@diamant.jouy.inra.fr>
parent: sathish <sathish@ceedees.com>
1 sibling, 0 replies; 8+ messages in thread
From: Jouneau Luc @ 2004-06-14 07:25 UTC (permalink / raw)
To: pgsql-jdbc
Hi,
It seems there's something wrong in the design of your db : Don't you have
another table containing name attribute as primary key which you could refer
as foreign key in staf_xxxx ?
I don't know how to implement what you want to do, except perhaps
implementing your own referential control in procedural sql functions fired
by triggers.
Anyhow, it is better design pattern to use sequential number without any
business meaning as primary key.
Luc Jouneau
----- Original Message -----
From: "sathish" <sathish@ceedees.com>
To: <pgsql-jdbc@postgresql.org>
Sent: Friday, June 11, 2004 11:44 AM
Subject: [ADMIN] doubt
> dear groups,
> i have a doubt in sql,
> i have a table staff_skills in which i have set a table level
> constraint to create a primary key of two fields .
> so 'name' and 'skill' combinedly forms a primary key.
> now the issue is in another table i have only 'name' field and i want
> to create a foreign key constraint which refers the staff_skills table's
> 'name' field only.
> staff_skills (table) - name,skill,ability (columns) --- primary
> key(name,skill)
> staff_xxxx (table) - name,x,y,z (columns) --- foreign
> key(name) references staff_skills(name).
> how to do the above?
> your immediate reply will be helpful
> yours sincerely
> SathishKumar.S
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [ADMIN] doubt
@ 2004-06-14 15:22 Bruno Wolff III <bruno@wolff.to>
parent: sathish <sathish@ceedees.com>
1 sibling, 0 replies; 8+ messages in thread
From: Bruno Wolff III @ 2004-06-14 15:22 UTC (permalink / raw)
To: sathish <sathish@ceedees.com>; +Cc: pgsql-jdbc
On Fri, Jun 11, 2004 at 15:14:07 +0530,
sathish <sathish@ceedees.com> wrote:
> dear groups,
> i have a doubt in sql,
> i have a table staff_skills in which i have set a table level
> constraint to create a primary key of two fields .
> so 'name' and 'skill' combinedly forms a primary key.
> now the issue is in another table i have only 'name' field and i want
> to create a foreign key constraint which refers the staff_skills table's
> 'name' field only.
No. References need to be to keys (columns with a unique index on just
the columns being referenced).
In this case you almost certainly what to have the name table separate
from the skill table and have both the skill table and the other table
refer to the name table.
> staff_skills (table) - name,skill,ability (columns) --- primary
> key(name,skill)
> staff_xxxx (table) - name,x,y,z (columns) --- foreign
> key(name) references staff_skills(name).
> how to do the above?
> your immediate reply will be helpful
> yours sincerely
> SathishKumar.S
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: [ADMIN] doubt
@ 2004-06-14 16:48 Duane Lee - EGOVX <DLee@mail.maricopa.gov>
0 siblings, 0 replies; 8+ messages in thread
From: Duane Lee - EGOVX @ 2004-06-14 16:48 UTC (permalink / raw)
To: 'sathish' <sathish@ceedees.com>; pgsql-jdbc
Can you make a UNIQUE index on name in the staff_skills table? If not you
may not be able to create the foreign key constraint.
-----Original Message-----
From: sathish [mailto:sathish@ceedees.com]
Sent: Friday, June 11, 2004 2:44 AM
To: pgsql-jdbc@postgresql.org
Subject: [ADMIN] doubt
dear groups,
i have a doubt in sql,
i have a table staff_skills in which i have set a table level
constraint to create a primary key of two fields .
so 'name' and 'skill' combinedly forms a primary key.
now the issue is in another table i have only 'name' field and i want
to create a foreign key constraint which refers the staff_skills table's
'name' field only.
staff_skills (table) - name,skill,ability (columns) --- primary
key(name,skill)
staff_xxxx (table) - name,x,y,z (columns) --- foreign
key(name) references staff_skills(name).
how to do the above?
your immediate reply will be helpful
yours sincerely
SathishKumar.S
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
^ permalink raw reply [nested|flat] 8+ messages in thread
* doubt
@ 2005-11-05 04:54 pavi thra <paveek@yahoo.com>
0 siblings, 0 replies; 8+ messages in thread
From: pavi thra @ 2005-11-05 04:54 UTC (permalink / raw)
To: pgsql-jdbc
dear sir,
how can i run jdbc in applet. it compiled correctly. but in runnig it gives security error.how can i overcome
plz sir reply immediately sir
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: doubt
@ 2005-11-07 08:05 Achilleus Mantzios <achill@matrix.gatewaynet.com>
0 siblings, 0 replies; 8+ messages in thread
From: Achilleus Mantzios @ 2005-11-07 08:05 UTC (permalink / raw)
To: Kevin Grittner <Kevin.Grittner@wicourts.gov>; +Cc: pgsql-jdbc; paveek@yahoo.com
O Kevin Grittner Ýãñáøå óôéò Nov 5, 2005 :
> Java takes a pretty conservative approach to security. An applet
> is only allowed to connect back to the server from which it was
> loaded. The database must be on the same computer as the web
> app, or you must use tunnelling software.
>
> Without more information I can't be sure that this is your issue,
> but it seems likely.
>
> -Kevin
>
>
> >>> pavi thra <paveek@yahoo.com> >>>
>
> how can i run jdbc in applet. it compiled correctly. but in runnig it
> gives security error.how can i overcome
If security is an issue, you can always sign your applet.
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/jarsigner.html
and
http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.html
are your friends.
Also check that postgresql.jar is in your CLASSPATH as in :
<applet name="PhotoJApplet"
archive="../SMA_APPLETS.jar,../commons-httpclient-2.0.2.jar,../commons-codec-1.3.jar,../commons-logging.jar,../
crewapp,../postgresql.jar"
code="com.gatewaynet.web.applets.PhotoJApplet.class"
MAYSCRIPT
width="800"
height="300">
.......
<PARAM NAME="cookiename" VALUE="JSESSIONID">
<PARAM NAME="cookievalue" VALUE="<%=session.getId()%>">
<PARAM NAME="cookiehost" VALUE="<%=request.getServerName()%>">
<PARAM NAME="cookiepath" VALUE="<%=request.getContextPath()%>">
.......
</applet>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
--
-Achilleus
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2005-11-07 08:05 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-05-30 10:20 Re: Doubt Joe Shevland <jshevland@j-elite.com>
2002-05-30 12:53 ` Dave Cramer <Dave@micro-automation.net>
2004-06-11 09:44 doubt sathish <sathish@ceedees.com>
2004-06-14 07:25 ` Re: [ADMIN] doubt Jouneau Luc <Luc.Jouneau@diamant.jouy.inra.fr>
2004-06-14 15:22 ` Re: [ADMIN] doubt Bruno Wolff III <bruno@wolff.to>
2004-06-14 16:48 Re: [ADMIN] doubt Duane Lee - EGOVX <DLee@mail.maricopa.gov>
2005-11-05 04:54 doubt pavi thra <paveek@yahoo.com>
2005-11-07 08:05 Re: doubt Achilleus Mantzios <achill@matrix.gatewaynet.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox