This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var paramTests = []struct { | |
description string | |
sqlType string | |
value interface{} | |
}{ | |
{"empty string", "varchar(10)", ""}, | |
{"NULL for TEXT", "text", nil}, | |
{"large string value", "text", strings.Repeat("a", 10000)}, | |
{"datetime overflow", "datetime", time.Date(2013, 9, 9, 14, 07, 15, 123, time.UTC)}, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
_ "code.google.com/p/odbc" | |
"database/sql" | |
"log" | |
) | |
func main() { | |
db, err := sql.Open("odbc", "DSN=xstreamds") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout> | |
<LinearLayout></LinearLayout> | |
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
DocumentRoot /var/www/ptest | |
<Directory /var/www/ptest> | |
AllowOverride all | |
Options -MultiViews | |
</Directory> | |
RailsBaseURI /ptest | |
</VirtualHost> |