fix(shadow): repair UTC sampling and persist v3 diagnostics
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
|
||||
// No SQL execution. Model sqlcmd 13's literal :out paths at the process boundary.
|
||||
class Sqlcmd13OutputFixture
|
||||
{
|
||||
static int Main(string[] args)
|
||||
{
|
||||
if (Path.GetFileNameWithoutExtension(Environment.GetCommandLineArgs()[0]) == "jps")
|
||||
{
|
||||
Console.WriteLine("123 sun.tools.jps.Jps -lv");
|
||||
return 0;
|
||||
}
|
||||
int input = Array.IndexOf(args, "-i");
|
||||
if (input < 0) return 86;
|
||||
foreach (string line in File.ReadAllLines(args[input + 1]))
|
||||
{
|
||||
if (!line.StartsWith(":out ")) continue;
|
||||
string destination = line.Substring(5).Trim().Trim('"');
|
||||
if (destination == "stdout") continue;
|
||||
if (destination.Contains("$("))
|
||||
{
|
||||
Console.Error.WriteLine("sqlcmd13 cannot expand :out destination: " + destination);
|
||||
return 13;
|
||||
}
|
||||
File.WriteAllText(destination, "read-only SQL output fixture\r\n");
|
||||
}
|
||||
File.WriteAllText("sqlcmd-cwd.txt", Environment.CurrentDirectory);
|
||||
Console.WriteLine("EXPORT_SQL_OK");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user