Is there any limitation on length of SQL statements?
I am trying to execute following query and it's getting truncated.
select YackCalUserEvent . YackChannelName , YackCalUserEvent . UserId ,
EventDuration , EventDurationMins , TimeZone , UserType , isRecurring ,
RecurDayOfWeek , RecurDayOfMonth , RecurMonthOfYear , EventDate ,
EventName , CalEventId , YackEsEventId , RecurStDate , RecurEndDate from
YackCalUser , YackCalUserEvent where (isRecurring = 0 and EventDate
between '2000-05-21 00:00:00.0' and '2000-05-24 23:59:59.0' ) or (
isRecurring = 1 and RecurStDate <= '2000-05-24 23:59:59.0' and
RecurEndDate >= '2000-05-21 00:00:00')
main select YackCalUserEvent . YackChannelName , YackCalUserEvent .
UserId , EventDuration , EventDurationMins , TimeZone , UserType ,
isRecurring , RecurDayOfWeek , RecurDayOfMonth , RecurMonthOfYear ,
EventDate , EventName , CalEventId , YackEsEventId , RecurStDate ,
RecurEndDate from YackCalUser , YackCalUserEvent where (isRecurring = 0
and EventDate between '2000-05-21 00:00:00.0' and '2000-05-24
23:59:59.0' ) or ( isRecurring = 1 and RecurStDate <= '2000-05-24
23:59:59.0' and RecurEndDate >= '2000-05-21 00:
Don't understand SQL after: "or"
Expected: "{" found: "2000-05-21 00:"
java.sql.SQLException: select YackCalUserEvent . YackChannelName ,
YackCalUserEvent . UserId , EventDuration , EventDurationMins , TimeZone
, UserType , isRecurring , RecurDayOfWeek , RecurDayOfMonth ,
RecurMonthOfYear , EventDate , EventName , CalEventId , YackEsEventId ,
RecurStDate , RecurEndDate from YackCalUser , YackCalUserEvent where
(isRecurring = 0 and EventDate between '2000-05-21 00:00:00.0' and
'2000-05-24 23:59:59.0' ) or ( isRecurring = 1 and RecurStDate <=
'2000-05-24 23:59:59.0' and RecurEndDate >= '2000-05-21 00:
Don't understand SQL after: "or"
Expected: "{" found: "2000-05-21 00:"
at db.SQLProg.execute(SQLProg.java:215)
at jdbc.idbStatement.execute(idbStatement.java:235)
at commsql.main(commsql.java:74)
Enter SQL string, or . to exit
main 00:00')
main 00:00')
Don't understand SQL after: "00"
Expected: "=" found: ":"
java.sql.SQLException: 00:00')
Don't understand SQL after: "00"
Expected: "=" found: ":"
at db.SQLProg.execute(SQLProg.java:215)
at jdbc.idbStatement.execute(idbStatement.java:235)
at commsql.main(commsql.java:74)
----------
-alok
alok@yack.com
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|