You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Erwin Ambrosch <am...@ebutec.com> on 2002/07/25 13:48:59 UTC
Postgrsql
Hi,
I have tried all the stuff mentioned in the Postgresql HowTo to get
turbines security system working with Postgresql, but without success.
If anyone done this, please give me a hint how I can do it too.
I'm using Turbine 2.1, village-1.5.3.jar and Postgresql 7.2.1. (I also
tried it with 7.3 devel [building the jdbc driver by my own], but
without success).
I can't find lines containing the text "Types.INTEGER" in the file
Field.java as the HowTo does mention with respect to the patch..
Thanks in advance
ambre
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Postgrsql
Posted by Dan Robinson <dr...@dnai.com>.
Erwin,
It works, at least for me. Here's the steps:
put devpgjdbc2.jar in ..tdk/share/lib <--- from postgresql jdbc web site
..\tdk\share\conf\torque\templates\sql\base\postgresql db.props
<--- needs to change, see below
..\tdk\share\conf\torque\templates\sql\base\postgresql index.vm <----
needs to change, see below
-- check your index.vm there should be white spaces either after the ";"
or after the "#end" - remove them.
========= index.vm ===============
#foreach ($index in $table.Indices)
create #if($index.IsUnique)unique#end INDEX $index.IndexName
($index.IndexColumnList);
#end
================================
=========== Contents of dbprops ===============
# Taken from java.sql.Types in the IBM 1.3 JDK
# JDBC to PostgreSQL mappings.
BIT =
TINYINT = int2
SMALLINT = int2
INTEGER = integer
BIGINT = int8
FLOAT = float
REAL = float
BOOLEANCHAR = boolean
DOUBLE =
NUMERIC =
DECIMAL =
CHAR = varchar
VARCHAR = varchar
LONGVARCHAR = bytea
DATE = date
TIME = time
TIMESTAMP = timestamp
BINARY = bytea
VARBINARY = bytea
LONGVARBINARY = bytea
NULL =
OTHER =
JAVA_OBJECT =
DISTINCT =
STRUCT =
ARRAY =
BLOB =
CLOB = text
REF =
AUTOINCREMENT = serial
NOTNULL = NOT NULL
primaryKeyInsideTableDirective = true
indexInsideTableDirective = false
removeNotNullWithAutoIncrement = true
suppressDefaults = false
idMethod=sequence
======== end DB props ==============
Erwin Ambrosch wrote:
> Hi,
>
> I have tried all the stuff mentioned in the Postgresql HowTo to get
> turbines security system working with Postgresql, but without success.
>
> If anyone done this, please give me a hint how I can do it too.
>
> I'm using Turbine 2.1, village-1.5.3.jar and Postgresql 7.2.1. (I also
> tried it with 7.3 devel [building the jdbc driver by my own], but
> without success).
>
> I can't find lines containing the text "Types.INTEGER" in the file
> Field.java as the HowTo does mention with respect to the patch..
>
> Thanks in advance
> ambre
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>