github-linguist / linguist

Language Savant. If your repository's language is being reported incorrectly, send us a pull request!
MIT License
12.33k stars 4.27k forks source link

SQL not working? #2472

Closed jjb closed 9 years ago

jjb commented 9 years ago

See section "Now you can start setting up the Foreign Data Wrapper" here https://github.com/jjb/holycorn/tree/patch-1

And I'll try it right here as well...

DROP EXTENSION holycorn CASCADE;
CREATE EXTENSION holycorn;
CREATE SERVER holycorn_server FOREIGN DATA WRAPPER holycorn;
CREATE FOREIGN TABLE holytable (some_date timestampz) \
  SERVER holycorn_server
  OPTIONS (wrapper_path '/tmp/source.rb');
pchaigno commented 9 years ago

It looks like this is because of the EXTENSION keyword. However, Linguist only selects the appropriate grammar. It uses textmate/sql.tmbundle for SQL code. You should open an issue there ;)

arfon commented 9 years ago

You should open an issue there ;)

:+1: