Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces odbc

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 04:27 PM
noreply@pgfoundry.org
 
Posts: n/a
Default [ psqlodbc-Bugs-1010368 ] connection problem with postgresql driver 8.03.0100 to postgresql 8.3.0

Bugs item #1010368, was opened at 2008-03-31 07:31
You can respond by visiting:
http://pgfoundry.org/tracker/?func=d...oup_id=1000125

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Sebastian Reitenbach (buzzdee)
Assigned to: Hiroshi Inoue (hinoue)
Summary: connection problem with postgresql driver 8.03.0100 to postgresql 8.3.0

Initial Comment:
I compiled postgres odbc driver version 8.03.0100, but when I try to connect
to a 8.3.0 postgres database, then there connection/authentication problems
happen:

isql FIS MyUser MyPassword -v
[28000][unixODBC]Communication error during authentication;
Error while reading from the socket.
[ISQL]ERROR: Could not SQLConnect
dbuser@dbhost:~> isql FIS MyDatabase MyDatabase -v
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>

I can only connect to the database by a chance of 1/10. Also when I get
connected, then when I try entering a SQL statement, I get error messages
about not being connected anymore.

and below the postgres log from the tries:


LOG: connection authorized: user=MyUser database=MyDatabase
LOG: unexpected EOF on client connection
LOG: disconnection: session time: 0:00:00.002 user=MyUser
database=MyDatabase
host=192.168.15.106 port=52224
DEBUG: server process (PID 19939) exited with exit code 0
LOG: connection received: host=192.168.15.106 port=52225
DEBUG: forked new backend, pid=19941 socket=6
LOG: connection authorized: user=MyUser database=MyDatabase
LOG: unexpected EOF on client connection
LOG: disconnection: session time: 0:00:00.003 user=MyDatabase
database=MyDatabase
host=192.168.15.106 port=52225
DEBUG: server process (PID 19941) exited with exit code 0
LOG: connection received: host=192.168.15.106 port=52226
DEBUG: forked new backend, pid=19943 socket=6
LOG: connection authorized: user=MyUser database=MyDatabase
LOG: statement:
LOG: statement: select version()
LOG: statement: set DateStyle to 'ISO'
LOG: statement: set geqo to 'OFF'
LOG: statement: set extra_float_digits to 2
LOG: statement: select oid, typbasetype from pg_type where typname = 'lo'
LOG: statement: select pg_client_encoding()
ERROR: synt x error at or near " at character 1
LOG: could not send data to client: Broken pipe
LOG: unexpected EOF on client connection

This is the part of the configuration from my odbc.ini:
[FIS]
Description = PostgreSQL DB
Driver = PostgreSQL
commlog = yes
Database = MyDatabase
Host = localhost
Server = localhost
ServerName = pdtest106.pdtest.intern
Username = MyUser
Password = MyPassword
Port = 5430
Protocol = 6.4
ReadOnly = No
RowVersioning = No
ShowSystemTables = No
ShowOidColumn = No
FakeOidIndex = No
ConnSettings =

Actually, I have no idea, what the protocol version number means. The
version 6.4 was the one I found most of the time in the net. I also tried to
set it to 8.3, and 8.3.0, but with no difference. Any pointer to an
explanation would be great.

when I exchange the odbc driver file, with an older one, odbc drvier version
8.1.2, then I do not have connection/login problems at all.

----------------------------------------------------------------------

Comment By: Tommy Ho (tommyho)
Date: 2008-04-07 19:10

Message:
I was running into the authentication problem with the original 8.03.01 sources using iodbctest. I applied the second patch and gone past the authentication problem. However, I have a different problem with the tuples from a select query not being displayed but instead got the error:

iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0607.1008
Driver: 08.03.0100 (psqlodbcw.so)

SQL>select * from persons;
1: SQLExec = LOG: duration: 2.801 ms (-1) SQLSTATE=00000

id |name |surname |password
-----------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------------------------------
1: SQLGetData = [iODBC][Driver Manager]Invalid cursor state (0) SQLSTATE=24000

here's the odbc log:
cat psqlodbc_root32679.log
Driver Version='08.03.0100,200801290001'
Global Options: fetch=100, socket=4096, unknown_sizes=0, max_varchar_size=255, max_longvarchar_size=8190
disable_optimizer=1, ksqo=1, unique_index=1, use_declarefetch=0
text_as_longvarchar=1, unknowns_as_longvarchar=0, bools_as_char=1 NAMEDATALEN=64
extra_systable_prefixes='dd_;', conn_settings='' conn_encoding=''
NOTICE from backend during CC_connect: 'SDEBUG'
NOTICE from backend during CC_connect: 'C00000'
NOTICE from backend during CC_connect: 'MInitPostgres'
NOTICE from backend during CC_connect: 'Fpostgres.c'
NOTICE from backend during CC_connect: 'L2959'
NOTICE from backend during CC_connect: 'RPostgresMain'
NOTICE from backend during CC_connect: 'SDEBUG'
NOTICE from backend during CC_connect: 'C00000'
NOTICE from backend during CC_connect: 'MStartTransaction'
NOTICE from backend during CC_connect: 'Fxact.c'
NOTICE from backend during CC_connect: 'L3930'
NOTICE from backend during CC_connect: 'RShowTransactionState'
NOTICE from backend during CC_connect: 'SDEBUG'
NOTICE from backend during CC_connect: 'C00000'
NOTICE from backend during CC_connect: 'Mname: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 21101/1/0, nestlvl: 1, children: <>'
NOTICE from backend during CC_connect: 'Fxact.c'
NOTICE from backend during CC_connect: 'L3955'
NOTICE from backend during CC_connect: 'RShowTransactionStateRec'
NOTICE from backend during CC_connect: 'SDEBUG'
NOTICE from backend during CC_connect: 'C00000'
NOTICE from backend during CC_connect: 'MCommitTransaction'
NOTICE from backend during CC_connect: 'Fxact.c'
NOTICE from backend during CC_connect: 'L3930'
NOTICE from backend during CC_connect: 'RShowTransactionState'
NOTICE from backend during CC_connect: 'SDEBUG'
NOTICE from backend during CC_connect: 'C00000'
NOTICE from backend during CC_connect: 'Mname: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 21101/1/0, nestlvl: 1, children: <>'
NOTICE from backend during CC_connect: 'Fxact.c'
NOTICE from backend during CC_connect: 'L3955'
NOTICE from backend during CC_connect: 'RShowTransactionStateRec'
[ PostgreSQL version string = '8.1.8' ]
[ PostgreSQL version number = '8.1' ]
conn=0x808c0c8, query='select oid, typbasetype from pg_type where typname = 'lo''
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'MStartTransactionCommand'
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L1996'
NOTICE from backend during send_query: 'Rstart_xact_command'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'MStartTransaction'
NOTICE from backend during send_query: 'Fxact.c'
NOTICE from backend during send_query: 'L3930'
NOTICE from backend during send_query: 'RShowTransactionState'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mname: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 21102/1/0, nestlvl: 1, children: <>'
NOTICE from backend during send_query: 'Fxact.c'
NOTICE from backend during send_query: 'L3955'
NOTICE from backend during send_query: 'RShowTransactionStateRec'
NOTICE from backend during send_query: 'SLOG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mstatement: select oid, typbasetype from pg_type where typname = 'lo''
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L605'
NOTICE from backend during send_query: 'Rlog_after_parse'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mparse tree:'
NOTICE from backend during send_query: 'D{QUERY :commandType 1 :querySource 0 :canSetTag true :utilityStmt <>
:resultRelation 0 :into <> :hasAggs false :hasSubLinks false :rtable ({RTE
:alias <> :eref {ALIAS :aliasname pg_type :colnames ("typname" "typnamespace"
"typowner" "typlen" "typbyval" "typtype" "typisdefined" "typdelim" "typrelid"
"typelem" "typinput" "typoutput" "typreceive" "typsend" "typanalyze"
"typalign" "typstorage" "typnotnull" "typbasetype" "typtypmod" "typndims"
"typdefaultbin" "typdefault")} :rtekind 0 :relid 1247 :inh true :inFromCl true
:requiredPerms 2 :checkAsUser 0}) :jointree {FROMEXPR :fromlist ({RANGETBLREF
:rtindex 1}) :quals {OPEXPR pno 93 pfuncid 0 presulttype 16 pretset
false :args ({VAR :varno 1 :varattno 1 :vartype 19 :vartypmod -1 :varlevelsup
0 :varnoold 1 :varoattno 1} {CONST :consttype 19 :constlen 64 :constbyval
false :constisnull false :constvalue 64 [ 108 111 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 ]})}} :rowMarks <> :forUpdate false :rowNoWait false
:targetList ({TARGETENTRY :expr {VAR :varno 1 :varattno -2 :vartype 26
:vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno -2} :resno 1 :resname oid
:ressortgroupref 0 :resorigtbl 1247 :resorigcol -2 :resjunk false}
{TARGETENTRY :expr {VAR :varno 1 :varattno 19 :vartype 26 :vartypmod -1
:varlevelsup 0 :varnoold 1 :varoattno 19} :resno 2 :resname typbasetype
:ressortgroupref 0 :resorigtbl 1247 :resorigcol 19 :resjunk false})
:groupClause <> :havingQual <> :distinctClause <> :sortClause <> :limitOffset
<> :limitCount <> :setOperations <> :resultRelations <>}
'
NOTICE from backend during send_query: 'Fprint.c'
NOTICE from backend during send_query: 'L86'
NOTICE from backend during send_query: 'Relog_node_display'
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'MCommitTransactionCommand'
NOTICE from backend during next_tuple: 'Fpostgres.c'
NOTICE from backend during next_tuple: 'L2019'
NOTICE from backend during next_tuple: 'Rfinish_xact_command'
NOTICE from backend in next_tuple: ''
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'MCommitTransaction'
NOTICE from backend during next_tuple: 'Fxact.c'
NOTICE from backend during next_tuple: 'L3930'
NOTICE from backend during next_tuple: 'RShowTransactionState'
NOTICE from backend in next_tuple: ''
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'Mname: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 21102/1/0, nestlvl: 1, children: <>'
NOTICE from backend during next_tuple: 'Fxact.c'
NOTICE from backend during next_tuple: 'L3955'
NOTICE from backend during next_tuple: 'RShowTransactionStateRec'
NOTICE from backend in next_tuple: ''
[ fetched 0 rows ]
NOTICE from backend during send_query: 'SLOG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mduration: 11.033 ms'
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L1090'
NOTICE from backend during send_query: 'Rexec_simple_query'
[ Large Object oid = -999 ]
[ Client encoding = 'UTF8' (code = 6) ]
conn=0x808c0c8, PGAPI_DriverConnect(out)='DSN=PgSQL;DATABASE=pg_ld ap;SERVER=;PORT=5432;UID=nac;PWD=xxxxxxxx;SSLmode= disable;ReadOnly=no;Protocol=7.4;FakeOidIndex=0;Sh owOidColumn=0;RowVersioning=0;ShowSystemTables=0;C onnSettings=;Fetch=100;Socket=4096;UnknownSizes=0; MaxVarcharSize=255;MaxLongVarcharSize=8190;Debug=1 ;CommLog=1;Optimizer=1;Ksqo=1;UseDeclareFetch=0;Te xtAsLongVarchar=1;UnknownsAsLongVarchar=0;BoolsAsC har=1;Parse=0;CancelAsFreeStmt=0;ExtraSysTablePref ixes=dd_;;LFConversion=0;UpdatableCursors=1;Disall owPremature=0;TrueIsMinus1=0;BI=0;ByteaAsLongVarBi nary=0;UseServerSidePrepare=0;LowerCaseIdentifier= 0;'
conn=0x808c0c8, query='select * from persons;'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'MStartTransactionCommand'
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L1996'
NOTICE from backend during send_query: 'Rstart_xact_command'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'MStartTransaction'
NOTICE from backend during send_query: 'Fxact.c'
NOTICE from backend during send_query: 'L3930'
NOTICE from backend during send_query: 'RShowTransactionState'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mname: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 21103/1/0, nestlvl: 1, children: <>'
NOTICE from backend during send_query: 'Fxact.c'
NOTICE from backend during send_query: 'L3955'
NOTICE from backend during send_query: 'RShowTransactionStateRec'
NOTICE from backend during send_query: 'SLOG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mstatement: select * from persons;'
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L605'
NOTICE from backend during send_query: 'Rlog_after_parse'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mparse tree:'
NOTICE from backend during send_query: 'D{QUERY :commandType 1 :querySource 0 :canSetTag true :utilityStmt <>
:resultRelation 0 :into <> :hasAggs false :hasSubLinks false :rtable ({RTE
:alias <> :eref {ALIAS :aliasname persons :colnames ("id" "name" "surname"
"password")} :rtekind 0 :relid 16516 :inh true :inFromCl true :requiredPerms 2
:checkAsUser 0}) :jointree {FROMEXPR :fromlist ({RANGETBLREF :rtindex 1})
:quals <>} :rowMarks <> :forUpdate false :rowNoWait false :targetList
({TARGETENTRY :expr {VAR :varno 1 :varattno 1 :vartype 23 :vartypmod -1
:varlevelsup 0 :varnoold 1 :varoattno 1} :resno 1 :resname id :ressortgroupref
0 :resorigtbl 16516 :resorigcol 1 :resjunk false} {TARGETENTRY :expr {VAR
:varno 1 :varattno 2 :vartype 1043 :vartypmod 259 :varlevelsup 0 :varnoold 1
:varoattno 2} :resno 2 :resname name :ressortgroupref 0 :resorigtbl 16516
:resorigcol 2 :resjunk false} {TARGETENTRY :expr {VAR :varno 1 :varattno 3
:vartype 1043 :vartypmod 259 :varlevelsup 0 :varnoold 1 :varoattno 3} :resno 3
:resname surname :ressortgroupref 0 :resorigtbl 16516 :resorigcol 3 :resjunk
false} {TARGETENTRY :expr {VAR :varno 1 :varattno 4 :vartype 1043 :vartypmod
68 :varlevelsup 0 :varnoold 1 :varoattno 4} :resno 4 :resname password
:ressortgroupref 0 :resorigtbl 16516 :resorigcol 4 :resjunk false})
:groupClause <> :havingQual <> :distinctClause <> :sortClause <> :limitOffset
<> :limitCount <> :setOperations <> :resultRelations <>}
'
NOTICE from backend during send_query: 'Fprint.c'
NOTICE from backend during send_query: 'L86'
NOTICE from backend during send_query: 'Relog_node_display'
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'MCommitTransactionCommand'
NOTICE from backend during next_tuple: 'Fpostgres.c'
NOTICE from backend during next_tuple: 'L2019'
NOTICE from backend during next_tuple: 'Rfinish_xact_command'
NOTICE from backend in next_tuple: ''
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'MCommitTransaction'
NOTICE from backend during next_tuple: 'Fxact.c'
NOTICE from backend during next_tuple: 'L3930'
NOTICE from backend during next_tuple: 'RShowTransactionState'
NOTICE from backend in next_tuple: ''
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'Mname: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 21103/1/0, nestlvl: 1, children: <>'
NOTICE from backend during next_tuple: 'Fxact.c'
NOTICE from backend during next_tuple: 'L3955'
NOTICE from backend during next_tuple: 'RShowTransactionStateRec'
NOTICE from backend in next_tuple: ''
[ fetched 3 rows ]
NOTICE from backend during send_query: 'SLOG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mduration: 2.801 ms'
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L1090'
NOTICE from backend during send_query: 'Rexec_simple_query'
conn=0x808c0c8, query='select n.nspname, c.relname, a.attname, a.atttypid, t.typname, a.attnum, a.attlen, a.atttypmod, a.attnotnull, c.relhasrules, c.relkind, c.oid, d.adsrc from (((pg_catalog.pg_class c inner join pg_catalog.pg_namespace n on n.oid = c.relnamespace and c.oid = 16516) inner join pg_catalog.pg_attribute a on (not a.attisdropped) and a.attnum > 0 and a.attrelid = c.oid) inner join pg_catalog.pg_type t on t.oid = a.atttypid) left outer join pg_attrdef d on a.atthasdef and d.adrelid = a.attrelid and d.adnum = a.attnum order by n.nspname, c.relname, attnum'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'MStartTransactionCommand'
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L1996'
NOTICE from backend during send_query: 'Rstart_xact_command'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'MStartTransaction'
NOTICE from backend during send_query: 'Fxact.c'
NOTICE from backend during send_query: 'L3930'
NOTICE from backend during send_query: 'RShowTransactionState'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mname: unnamed; blockState: DEFAULT; state: INPROGR, xid/subid/cid: 21104/1/0, nestlvl: 1, children: <>'
NOTICE from backend during send_query: 'Fxact.c'
NOTICE from backend during send_query: 'L3955'
NOTICE from backend during send_query: 'RShowTransactionStateRec'
NOTICE from backend during send_query: 'SLOG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mstatement: select n.nspname, c.relname, a.attname, a.atttypid, t.typname, a.attnum, a.attlen, a.atttypmod, a.attnotnull, c.relhasrules, c.relkind, c.oid, d.adsrc from (((pg_catalog.pg_class c inner join pg_catalog.pg_namespace n on n.oid = c.relnamespace and c.oid = 16516) inner join pg_catalog.pg_attribute a on (not a.attisdropped) and a.attnum > 0 and a.attrelid = c.oid) inner join pg_catalog.pg_type t on t.oid = a.atttypid) left outer join pg_attrdef d on a.atthasdef and d.adrelid = a.attrelid and d.adnum = a.attnum order by n.nspname, c.relname, attnum'
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L605'
NOTICE from backend during send_query: 'Rlog_after_parse'
NOTICE from backend during send_query: 'SDEBUG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mparse tree:'
NOTICE from backend during send_query: 'D{QUERY :commandType 1 :querySource 0 :canSetTag true :utilityStmt <>
:resultRelation 0 :into <> :hasAggs false :hasSubLinks false :rtable ({RTE
:alias {ALIAS :aliasname c :colnames <>} :eref {ALIAS :aliasname c :colnames
("relname" "relnamespace" "reltype" "relowner" "relam" "relfilenode"
"reltablespace" "relpages" "reltuples" "reltoastrelid" "reltoastidxid"
"relhasindex" "relisshared" "relkind" "relnatts" "relchecks" "reltriggers"
"relukeys" "relfkeys" "relrefs" "relhasoids" "relhaspkey" "relhasrules"
"relhassubclass" "relacl")} :rtekind 0 :relid 1259 :inh true :inFromCl true
:requiredPerms 2 :checkAsUser 0} {RTE :alias {ALIAS :aliasname n :colnames <>}
:eref {ALIAS :aliasname n :colnames ("nspname" "nspowner" "nspacl")} :rtekind
0 :relid 2615 :inh true :inFromCl true :requiredPerms 2 :checkAsUser 0} {RTE
:alias <> :eref {ALIAS :aliasname unnamed_join :colnames ("relname"
"relnamespace" "reltype" "relowner" "relam" "relfilenode" "reltablespace"
"relpages" "reltuples" "reltoastrelid" "reltoastidxid" "relhasindex"
"relisshared" "relkind" "relnatts" "relchecks" "reltriggers" "relukeys"
"relfkeys" "relrefs" "relhasoids" "relhaspkey" "relhasrules" "relhassubclass"
"relacl" "nspname" "nspowner" "nspacl")} :rtekind 2 :jointype 0 :joinaliasvars
({VAR :varno 1 :varattno 1 :vartype 19 :vartypmod -1 :varlevelsup 0 :varnoold
1 :varoattno 1} {VAR :varno 1 :varattno 2 :vartype 26 :vartypmod -1
:varlevelsup 0 :varnoold 1 :varoattno 2} {VAR :varno 1 :varattno 3 :vartype 26
:vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno 3} {VAR :varno 1 :varattno
4 :vartype 26 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno 4} {VAR
:varno 1 :varattno 5 :vartype 26 :vartypmod -1 :varlevelsup 0 :varnoold 1
:varoattno 5} {VAR :varno 1 :varattno 6 :vartype 26 :vartypmod -1 :varlevelsup
0 :varnoold 1 :varoattno 6} {VAR :varno 1 :varattno 7 :vartype 26 :vartypmod
-1 :varlevelsup 0 :varnoold 1 :varoattno 7} {VAR :varno 1 :varattno 8 :vartype
23 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno 8} {VAR :varno 1
:varattno 9 :vartype 700 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno
9} {VAR :varno 1 :varattno 10 :vartype 26 :vartypmod -1 :varlevelsup 0
:varnoold 1 :varoattno 10} {VAR :varno 1 :varattno 11 :vartype 26 :vartypmod
-1 :varlevelsup 0 :varnoold 1 :varoattno 11} {VAR :varno 1 :varattno 12
:vartype 16 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno 12} {VAR
:varno 1 :varattno 13 :vartype 16 :vartypmod -1 :varlevelsup 0 :varnoold 1
:varoattno 13} {VAR :varno 1 :varattno 14 :vartype 18 :vartypmod -1
:varlevelsup 0 :varnoold 1 :varoattno 14} {VAR :varno 1 :varattno 15 :vartype
21 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno 15} {VAR :varno 1
:varattno 16 :vartype 21 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno
16} {VAR :varno 1 :varattno 17 :vartype 21 :vartypmod -1 :varlevelsup 0
:varnoold 1 :varoattno 17} {VAR :varno 1 :varattno 18 :vartype 21 :vartypmod
-1 :varlevelsup 0 :varnoold 1 :varoattno 18} {VAR :varno 1 :varattno 19
:vartype 21 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno 19} {VAR
:varno 1 :varattno 20 :vartype 21 :vartypmod -1 :varlevelsup 0 :varnoold 1
:varoattno 20} {VAR :varno 1 :varattno 21 :vartype 16 :vartypmod -1
:varlevelsup 0 :varnoold 1 :varoattno 21} {VAR :varno 1 :varattno 22 :vartype
16 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno 22} {VAR :varno 1
:varattno 23 :vartype 16 :vartypmod -1 :varlevelsup 0 :varnoold 1 :varoattno
23} {VAR :varno 1 :varattno 24 :vartype 16 :vartypmod -1 :varlevelsup 0
:varnoold 1 :varoattno 24} {VAR :varno 1 :varattno 25 :vartype 1034 :vartypmod
-1 :varlevelsup 0 :varnoold 1 :varoattno 25} {VAR :varno 2 :varattno 1
:vartype 19 :vartypmod -1 :varlevelsup 0 :varnoold 2 :varoattno 1} {VAR :varno
2 :varattno 2 :vartype 26 :vartypmod -1 :varlevelsup 0 :varnoold 2 :varoattno
2} {VAR :varno 2 :varattno 3 :vartype 1034 :vartypmod -1 :varlevelsup 0
:varnoold 2 :varoattno 3}) :inh false :inFromCl true :requiredPerms 0
:checkAsUser 0} {RTE :alias {ALIAS :aliasname a :colnames <>} :eref {ALIAS
:aliasname a :colnames ("attrelid" "attname" "atttypid" "attstattarget"
"at'
NOTICE from backend during send_query: 'Fprint.c'
NOTICE from backend during send_query: 'L86'
NOTICE from backend during send_query: 'Relog_node_display'
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'MCommitTransactionCommand'
NOTICE from backend during next_tuple: 'Fpostgres.c'
NOTICE from backend during next_tuple: 'L2019'
NOTICE from backend during next_tuple: 'Rfinish_xact_command'
NOTICE from backend in next_tuple: x
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'MCommitTransaction'
NOTICE from backend during next_tuple: 'Fxact.c'
NOTICE from backend during next_tuple: 'L3930'
NOTICE from backend during next_tuple: 'RShowTransactionState'
NOTICE from backend in next_tuple: x
NOTICE from backend during next_tuple: 'SDEBUG'
NOTICE from backend during next_tuple: 'C00000'
NOTICE from backend during next_tuple: 'Mname: unnamed; blockState: STARTED; state: INPROGR, xid/subid/cid: 21104/1/0, nestlvl: 1, children: <>'
NOTICE from backend during next_tuple: 'Fxact.c'
NOTICE from backend during next_tuple: 'L3955'
NOTICE from backend during next_tuple: 'RShowTransactionStateRec'
NOTICE from backend in next_tuple: x
[ fetched 4 rows ]
NOTICE from backend during send_query: 'SLOG'
NOTICE from backend during send_query: 'C00000'
NOTICE from backend during send_query: 'Mduration: 25.955 ms'
NOTICE from backend during send_query: 'Fpostgres.c'
NOTICE from backend during send_query: 'L1090'
NOTICE from backend during send_query: 'Rexec_simple_query'
PGAPI_Columns: table='persons',field_name='id',type=23,name='int4 '
PGAPI_Columns: table='persons',field_name='name',type=1043,name=' varchar'
PGAPI_Columns: table='persons',field_name='surname',type=1043,nam e='varchar'
PGAPI_Columns: table='persons',field_name='password',type=1043,na me='varchar'
conn=0x808c0c8, PGAPI_Disconnect



----------------------------------------------------------------------

Comment By: Hiroshi Inoue (hinoue)
Date: 2008-04-03 17:20

Message:
Please try the second patch.

regards,
Hiroshi Inoue

----------------------------------------------------------------------

Comment By: Sebastian Reitenbach (buzzdee)
Date: 2008-04-02 10:21

Message:
I just retried to compile against postgresql 8.3.1, but
with the same result. Note, for the test I did not used
your patch.

----------------------------------------------------------------------

Comment By: Sebastian Reitenbach (buzzdee)
Date: 2008-04-02 08:40

Message:
Forgot to mention, I compiled with and
without --disable-unicode --disable-openssl
but both versions show the same results.

----------------------------------------------------------------------

Comment By: Sebastian Reitenbach (buzzdee)
Date: 2008-04-02 08:32

Message:
Thanks for the patch, I just tested. It did not apply
cleanly:
/usr/local/src/psqlodbc-08.03.0100 # patch -p0
< ../psqlodbc.patch
patching file ./socket.c
Hunk #1 succeeded at 347 (offset -6 lines).
Hunk #2 FAILED at 519.
Hunk #3 FAILED at 529.
Hunk #4 succeeded at 811 (offset -6 lines).
Hunk #5 succeeded at 868 (offset -6 lines).
Hunk #6 succeeded at 947 (offset -6 lines).
2 out of 6 hunks FAILED -- saving rejects to
file ./socket.c.rej

However, after taking a look into the source and the patch
file, I changed the section to look like this:

#ifdef USE_SSL
/*
* The stuff for SSL.
*/
/* included in <openssl/ssl.h> */
#define SSL_ERROR_NONE 0
#define SSL_ERROR_SSL 1
#define SSL_ERROR_WANT_READ 2
#define SSL_ERROR_WANT_WRITE 3
#define SSL_ERROR_WANT_X509_LOOKUP 4
#define SSL_ERROR_SYSCALL 5 // look at error
stack/return value/errno
#define SSL_ERROR_ZERO_RETURN 6
#define SSL_ERROR_WANT_CONNECT 7
#define SSL_ERROR_WANT_ACCEPT 8
// */

However, the patch did not helped.
I still get these error messages:

isql MyDatabase -v
[28000][unixODBC]Communication error during
authentication;
Error while reading from the socket.
[ISQL]ERROR: Could not SQLConnect


The mylog_root21305.log is from above message.


isql MyDatabase -v
[S1000][unixODBC]The database does not exist on the server
or user authentication failed.
[ISQL]ERROR: Could not SQLConnect

The mylog_root21305.log is from above message.


----------------------------------------------------------------------

Comment By: Hiroshi Inoue (hinoue)
Date: 2008-04-01 15:53

Message:
Please try the attached patch.

----------------------------------------------------------------------

Comment By: Hiroshi Inoue (hinoue)
Date: 2008-03-31 10:23

Message:
Could you attach the Mylog output ?
You will be able to take the log (/tmp/mylog_xxxx.log) by adding the line
Debug = 1
to your odbc.ini.

regards,
Hiroshi Inoue


----------------------------------------------------------------------

You can respond by visiting:
http://pgfoundry.org/tracker/?func=d...oup_id=1000125

--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:30 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945