Browse Source

HUE-8740 [editor] Add postgresql to SQL samples

Romain 5 years ago
parent
commit
ec86bfe4d1
2 changed files with 4 additions and 4 deletions
  1. 1 1
      apps/beeswax/data/employe_sample.csv
  2. 3 3
      apps/beeswax/data/tables_standard.json

+ 1 - 1
apps/beeswax/data/employe_sample.csv

@@ -377,7 +377,7 @@
 33-3021	Detectives and criminal investigators	103320	62500
 33-3031	Fish and game wardens	7500	55720
 33-3041	Parking enforcement workers	9910	32830
-33-3051	Police and sheriff's patrol officers	625880	50670
+33-3051	Police and sheriff patrol officers	625880	50670
 33-3052	Transit and railroad police	5530	49500
 33-9011	Animal control workers	14890	30860
 33-9021	Private detectives and investigators	37410	42660

+ 3 - 3
apps/beeswax/data/tables_standard.json

@@ -1,10 +1,10 @@
 [
   {
     "data_file": "employe_sample.csv",
-    "create_sql": "CREATE TABLE `employe_sample` (\n  `code` text ,\n  `description` text ,\n  `total_emp` int ,\n  `salary` int )\n",
-    "insert_sql": "INSERT INTO employe_sample (`code`, `description`, `total_emp`, `salary`)\nVALUES %(values)s",
+    "create_sql": "CREATE TABLE employe_sample (\n  code text ,\n  description text ,\n  total_emp int ,\n  salary int )\n",
+    "insert_sql": "INSERT INTO employe_sample (code, description, total_emp, salary)\nVALUES %(values)s",
     "table_name": "employe_sample",
-    "dialects": ["mysql"],
+    "dialects": ["mysql", "postgresql", "presto"],
     "transactional": true
   }
 ]