LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-04-2016, 06:22 AM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Rep: Reputation: 108Reputation: 108
sqlite nested comment, /* -- */ (sqlitebrowser..)


Hya

to whom it may concern

Software used
sqlitebrowser, sqlite

Problem
After commenting out several lines for debug, things went wrong. (completely zero output)

Documentation reads
This page reads
Quote:
Comments do not nest.
Why I am posting here
Nested comment like
Code:
/*--having count(*) > 1
--order by 1
*/
works. But
Code:
/*--having count(*) > 1
--order by 1*/
chokes.

My understanding was that "nested comment" meant
Code:
/* ... /* ... */ ... */
While
Code:
-- ... -- ...
works!

Closing remark
Have a happy penguin.
 
Old 10-12-2016, 04:29 PM   #2
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by kaz2100 View Post
Hya

to whom it may concern

Software used
sqlitebrowser, sqlite

Problem
After commenting out several lines for debug, things went wrong. (completely zero output)

Documentation reads
This page reads

Why I am posting here
Nested comment like
Code:
/*--having count(*) > 1
--order by 1
*/
works. But
Code:
/*--having count(*) > 1
--order by 1*/
chokes.

My understanding was that "nested comment" meant
Code:
/* ... /* ... */ ... */
While
Code:
-- ... -- ...
works!

Closing remark
Have a happy penguin.
Hi kaz2100
I think the reason that the second code you setout did not work is because you never had a space
just before the '*/' .
Code:
/*--having count(*) > 1
--order by 1*/
Try it by putting a space before the */ such as
Code:
/*--having count(*) > 1
--order by 1 */
Although not necessary it probably would be good style to leave a space also after the '/*' such as
Code:
/*  --having count(*) > 1
--order by 1*  /
Cheers...
 
Old 10-20-2016, 01:13 AM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
Hya

Thanks for your comment. Apology for delay.

I have not investigated in detail, though I will update as soon as I find something new.

cheers
 
  


Reply

Tags
comment, debug, nest, sqlite



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sqlite dyto Linux - Server 4 04-21-2014 11:38 AM
LXer: Sqlite-Commander - A ncurses based tool to display the records and tables of a sqlite database LXer Syndicated Linux News 0 01-02-2011 08:11 AM
[SOLVED] SQLite: Trying to open a database file in sqlitebrowser returns an error Kenny_Strawn Linux - Server 2 10-31-2010 05:24 PM
SQLite and C++ miamagoo Programming 1 06-10-2010 10:21 AM
SQLite and C++ ManuPeng Programming 4 04-07-2007 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration