InstantDB Project
About InstantDB
Project Mail Lists
Short History
Reporting Bugs
Screen Shots
3rd Party Examples
FAQs

Software
Downloads
Documentation
CVS Repositories
Roadmap
License

About Enhydra.org
Who We Are
News, Articles & Events
Getting Involved
Contact Us

Community
Demos
Contributions
Resources
Case Studies
On The Edge! -NEW-
Commercial Vendors


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: InstantDB: length of SQL statement?


Alok

There's no in built limitation that I'm aware of with the length of SQWL statements. Is this still causing you problems?

Regards

Peter Hearty
Lutris Technologies UK


-----Original Message-----
From: owner-instantDB@Enhydra.ORG [mailto:owner-instantDB@Enhydra.ORG]On
Behalf Of Alok Daipuria
Sent: 22 May 2000 20:45
To: instantDB@enhydra.org
Subject: InstantDB: length of SQL statement?


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.

-----------------------------------------------------------------------------
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.