* Tabs and ends of lines in sql mode
@ 2006-04-22 17:31 Jiri Pejchal
0 siblings, 0 replies; only message in thread
From: Jiri Pejchal @ 2006-04-22 17:31 UTC (permalink / raw
The function sql-send-paragraph in sql.el sends current paragraph to the
SQL process. However it sends the paragraph with leading tabs and ends
of lines. In database front-ends like mysql or psql tabs are bound to
completion and so the completion is printed. Moreover ends of lines
cause secondary prompts to be printed.
So if I send:
create table stock (
id int4,
avail int4,
ordered int4,
valid bool,
description text
);
six secondary prompts and five times the completions (several lines) are
printed, that is very inconvenient.
Could sql mode not send the internal tabs and ends of lines?
Jiri Pejchal
Sending the previous example produces following output:
test=> test(>
ABORT COMMIT END LISTEN RELEASE SHOW
ALTER COPY EXECUTE LOAD RESET START
ANALYZE CREATE EXPLAIN LOCK REVOKE TRUNCATE
BEGIN DEALLOCATE FETCH MOVE ROLLBACK UNLISTEN
CLOSE DECLARE GRANT NOTIFY SAVEPOINT UPDATE
CLUSTER DELETE FROM CHECKPOINT PREPARE SELECT VACUUM
COMMENT DROP INSERT REINDEX SET
test(>
ABORT COMMIT END LISTEN RELEASE SHOW
ALTER COPY EXECUTE LOAD RESET START
ANALYZE CREATE EXPLAIN LOCK REVOKE TRUNCATE
BEGIN DEALLOCATE FETCH MOVE ROLLBACK UNLISTEN
CLOSE DECLARE GRANT NOTIFY SAVEPOINT UPDATE
CLUSTER DELETE FROM CHECKPOINT PREPARE SELECT VACUUM
COMMENT DROP INSERT REINDEX SET
test(>
ABORT COMMIT END LISTEN RELEASE SHOW
ALTER COPY EXECUTE LOAD RESET START
ANALYZE CREATE EXPLAIN LOCK REVOKE TRUNCATE
BEGIN DEALLOCATE FETCH MOVE ROLLBACK UNLISTEN
CLOSE DECLARE GRANT NOTIFY SAVEPOINT UPDATE
CLUSTER DELETE FROM CHECKPOINT PREPARE SELECT VACUUM
COMMENT DROP INSERT REINDEX SET
test(>
ABORT COMMIT END LISTEN RELEASE SHOW
ALTER COPY EXECUTE LOAD RESET START
ANALYZE CREATE EXPLAIN LOCK REVOKE TRUNCATE
BEGIN DEALLOCATE FETCH MOVE ROLLBACK UNLISTEN
CLOSE DECLARE GRANT NOTIFY SAVEPOINT UPDATE
CLUSTER DELETE FROM CHECKPOINT PREPARE SELECT VACUUM
COMMENT DROP INSERT REINDEX SET
test(>
ABORT COMMIT END LISTEN RELEASE SHOW
ALTER COPY EXECUTE LOAD RESET START
ANALYZE CREATE EXPLAIN LOCK REVOKE TRUNCATE
BEGIN DEALLOCATE FETCH MOVE ROLLBACK UNLISTEN
CLOSE DECLARE GRANT NOTIFY SAVEPOINT UPDATE
CLUSTER DELETE FROM CHECKPOINT PREPARE SELECT VACUUM
COMMENT DROP INSERT REINDEX SET
test(> CREATE TABLE
test=>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-22 17:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-22 17:31 Tabs and ends of lines in sql mode Jiri Pejchal
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).