A5:SQL Mk-2

開発のこと、日々のこと

Executing the SQL with /**/

ホーム フォーラム A5:SQL Mk-2掲示板 Executing the SQL with /**/

7件の投稿を表示中 - 1 - 7件目 (全7件中)
  • 投稿者
    投稿
  • #20458 返信
    maria
    ゲスト

    I have sql file with this content :
    CREATE TABLE test1 (
    id serial NOT NULL
    , CONSTRAINT test1_PKC PRIMARY KEY (id)
    ) ;/*
    CREATE SEQUENCE IF NOT EXISTS test_id_seq;
    */
    ;

    CREATE TABLE test2 (
    id serial NOT NULL
    , CONSTRAINT test2_PKC PRIMARY KEY (id)
    ) ;

    Using a5m2cmd, it will only create the “test1” table.
    It will not create “test2” table because of the multi line comment /**/
    Can you please check?

    #20469 返信
    松原正和
    キーマスター

    Hello Maria,

    I didn’t reproduce it in my environment, but A5: Which version of the SQL Mk-2 command line utility are you using?

    #20472 返信
    maria
    ゲスト

    Hi @matsubara.

    Version 2.18.0 (64 bit)
    I downloaded it from here : https://www.vector.co.jp/soft/dl/winnt/util/se519353.html

    #20473 返信
    maria
    ゲスト

    @matsubara

    Is Version 2.18.0 the latest version?
    If not, where can I download the latest?

    #20474 返信
    maria
    ゲスト

    @matsubara

    I’m using this command to execute the sql :

    A5M2cmd.exe “/Connect=__ConnectionType=Internal;ProviderName=PostgreSQL;UserName=%USER_NAME%;Password=%PASSWORD%;ServerName=%SERVER_NAME%;Port=%PORT%;Database=%DATABASE%;ProtocolVersion=30” /RunSQL /Encoding=UTF-8 “/FileName=%OUT_FILENAME%”

    Thank you.

    #20486 返信
    maria
    ゲスト

    It will print the “No SQL statement provided” if it the sql has multi line comment

    #20493 返信
    松原正和
    キーマスター

    Hello Maria,
     
    Depending on your database, using empty SQL may cause an error.
     
    I fixed it in version 2.18.3 beta 1, so please try it.
     
    https://a5m2.mmatsubara.com/beta/

7件の投稿を表示中 - 1 - 7件目 (全7件中)
返信先: Executing the SQL with /**/
あなたの情報:




コメントは受け付けていません。