Menu

#17 [FIX] New Postgres No Empty Query

open
nobody
None
5
2014-01-15
2006-06-22
No

Sending a query with an empty string destroyes the
socket.

Changing the PGConnect>>execute: sqlString
sqlString ifEmpty: [^nil].

trace >= 2 ifTrue: [self log: 'execute' text:
sqlString].

self isConnected ifFalse: [ self
error: 'Connection not valid' ].
sql := sqlString.
self queueEvent: #Query.
self saProcessEventsUntil: #(ReadyForQuery
ConnectionFailed).

to add empty check fixes the problem.

Ron Teitelbaum
Ron@USMedRec.com

Discussion


Log in to post a comment.