我有一个postgres数据配置文件。
<dataConfig>
<dataSource driver=”org.postgresql.Driver” url=”jdbc:postgresql://127.0.0.1:5432/mydb” user=”user” password=”pw” />
...
</dataConfig>
但是当我运行它时,它显示错误
Data Config problem: Open quote is expected for attribute "driver" associated with an element type "dataSource".
这是什么问题。我弄错了驾驶员信息吗?
答案 0 :(得分:1)
您的报价有误。
REPORT zab_demo2.
"Types can be of course from Data Dictionary, here we define types for demonstaration purpose only.
TYPES:
BEGIN OF ty_connection,
connid TYPE s_conn_id,
END OF ty_connection.
TYPES:
BEGIN OF ty_cat,
cat TYPE s_conn_id,
END OF ty_cat.
TYPES ty_connections TYPE STANDARD TABLE OF ty_connection WITH NON-UNIQUE KEY connid.
DATA:
connections_structured2 TYPE ty_connections,
connections_unstructured TYPE STANDARD TABLE OF s_conn_id,
cats_structured TYPE STANDARD TABLE OF ty_cat WITH NON-UNIQUE KEY cat.
SELECT * FROM sflight INTO TABLE @DATA(flights) UP TO 10 ROWS.
DATA(connections_structured) = CORRESPONDING ty_connections( flights ).
connections_structured2 = CORRESPONDING #( flights ).
"FOR can be combined with REDUCE, WHERE, FILTER and INIT, to get out more from BI Queries
DATA(connections_structured3) = VALUE ty_connections( FOR flight IN flights ( connid = flight-connid ) ).
"Of course you can cut out 2 of 3 columns also, here we cut only one out
connections_unstructured = VALUE #( FOR flight IN flights ( flight-connid ) ).
"Move column to other internal table with different field name
cats_structured = CORRESPONDING #( flights MAPPING cat = connid ).
"Move column to other internal table with different type
connections_unstructured = VALUE string_table( FOR flight IN flights ( CONV string( flight-connid ) ) ).
和”
是不同类型的引号(请参阅不同的演示文稿)。在XML文件(以及大多数/所有编程上下文)中,只有"
是有效的双引号。
配置文件中的示例似乎已被博客或文本编辑器破坏了。